Skip to content

Commit fab273c

Browse files
committed
Changed lib files back to 1.5 beta status.
1 parent 259ca15 commit fab273c

File tree

2 files changed

+21
-210
lines changed

2 files changed

+21
-210
lines changed

tsserver/lib.d.ts

+1-145
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ interface Math {
561561
*/
562562
atan(x: number): number;
563563
/**
564-
* Returns the angle (in radians) from the X axis to a point.
564+
* Returns the angle (in radians) from the X axis to a point (y,x).
565565
* @param y A numeric expression representing the cartesian y-coordinate.
566566
* @param x A numeric expression representing the cartesian x-coordinate.
567567
*/
@@ -1231,139 +1231,6 @@ interface ArrayBufferView {
12311231
byteOffset: number;
12321232
}
12331233

1234-
interface DataView {
1235-
buffer: ArrayBuffer;
1236-
byteLength: number;
1237-
byteOffset: number;
1238-
/**
1239-
* Gets the Float32 value at the specified byte offset from the start of the view. There is
1240-
* no alignment constraint; multi-byte values may be fetched from any offset.
1241-
* @param byteOffset The place in the buffer at which the value should be retrieved.
1242-
*/
1243-
getFloat32(byteOffset: number, littleEndian: boolean): number;
1244-
1245-
/**
1246-
* Gets the Float64 value at the specified byte offset from the start of the view. There is
1247-
* no alignment constraint; multi-byte values may be fetched from any offset.
1248-
* @param byteOffset The place in the buffer at which the value should be retrieved.
1249-
*/
1250-
getFloat64(byteOffset: number, littleEndian: boolean): number;
1251-
1252-
/**
1253-
* Gets the Int8 value at the specified byte offset from the start of the view. There is
1254-
* no alignment constraint; multi-byte values may be fetched from any offset.
1255-
* @param byteOffset The place in the buffer at which the value should be retrieved.
1256-
*/
1257-
getInt8(byteOffset: number): number;
1258-
1259-
/**
1260-
* Gets the Int16 value at the specified byte offset from the start of the view. There is
1261-
* no alignment constraint; multi-byte values may be fetched from any offset.
1262-
* @param byteOffset The place in the buffer at which the value should be retrieved.
1263-
*/
1264-
getInt16(byteOffset: number, littleEndian: boolean): number;
1265-
/**
1266-
* Gets the Int32 value at the specified byte offset from the start of the view. There is
1267-
* no alignment constraint; multi-byte values may be fetched from any offset.
1268-
* @param byteOffset The place in the buffer at which the value should be retrieved.
1269-
*/
1270-
getInt32(byteOffset: number, littleEndian: boolean): number;
1271-
1272-
/**
1273-
* Gets the Uint8 value at the specified byte offset from the start of the view. There is
1274-
* no alignment constraint; multi-byte values may be fetched from any offset.
1275-
* @param byteOffset The place in the buffer at which the value should be retrieved.
1276-
*/
1277-
getUint8(byteOffset: number): number;
1278-
1279-
/**
1280-
* Gets the Uint16 value at the specified byte offset from the start of the view. There is
1281-
* no alignment constraint; multi-byte values may be fetched from any offset.
1282-
* @param byteOffset The place in the buffer at which the value should be retrieved.
1283-
*/
1284-
getUint16(byteOffset: number, littleEndian: boolean): number;
1285-
1286-
/**
1287-
* Gets the Uint32 value at the specified byte offset from the start of the view. There is
1288-
* no alignment constraint; multi-byte values may be fetched from any offset.
1289-
* @param byteOffset The place in the buffer at which the value should be retrieved.
1290-
*/
1291-
getUint32(byteOffset: number, littleEndian: boolean): number;
1292-
1293-
/**
1294-
* Stores an Float32 value at the specified byte offset from the start of the view.
1295-
* @param byteOffset The place in the buffer at which the value should be set.
1296-
* @param value The value to set.
1297-
* @param littleEndian If false or undefined, a big-endian value should be written,
1298-
* otherwise a little-endian value should be written.
1299-
*/
1300-
setFloat32(byteOffset: number, value: number, littleEndian: boolean): void;
1301-
1302-
/**
1303-
* Stores an Float64 value at the specified byte offset from the start of the view.
1304-
* @param byteOffset The place in the buffer at which the value should be set.
1305-
* @param value The value to set.
1306-
* @param littleEndian If false or undefined, a big-endian value should be written,
1307-
* otherwise a little-endian value should be written.
1308-
*/
1309-
setFloat64(byteOffset: number, value: number, littleEndian: boolean): void;
1310-
1311-
/**
1312-
* Stores an Int8 value at the specified byte offset from the start of the view.
1313-
* @param byteOffset The place in the buffer at which the value should be set.
1314-
* @param value The value to set.
1315-
*/
1316-
setInt8(byteOffset: number, value: number): void;
1317-
1318-
/**
1319-
* Stores an Int16 value at the specified byte offset from the start of the view.
1320-
* @param byteOffset The place in the buffer at which the value should be set.
1321-
* @param value The value to set.
1322-
* @param littleEndian If false or undefined, a big-endian value should be written,
1323-
* otherwise a little-endian value should be written.
1324-
*/
1325-
setInt16(byteOffset: number, value: number, littleEndian: boolean): void;
1326-
1327-
/**
1328-
* Stores an Int32 value at the specified byte offset from the start of the view.
1329-
* @param byteOffset The place in the buffer at which the value should be set.
1330-
* @param value The value to set.
1331-
* @param littleEndian If false or undefined, a big-endian value should be written,
1332-
* otherwise a little-endian value should be written.
1333-
*/
1334-
setInt32(byteOffset: number, value: number, littleEndian: boolean): void;
1335-
1336-
/**
1337-
* Stores an Uint8 value at the specified byte offset from the start of the view.
1338-
* @param byteOffset The place in the buffer at which the value should be set.
1339-
* @param value The value to set.
1340-
*/
1341-
setUint8(byteOffset: number, value: number): void;
1342-
1343-
/**
1344-
* Stores an Uint16 value at the specified byte offset from the start of the view.
1345-
* @param byteOffset The place in the buffer at which the value should be set.
1346-
* @param value The value to set.
1347-
* @param littleEndian If false or undefined, a big-endian value should be written,
1348-
* otherwise a little-endian value should be written.
1349-
*/
1350-
setUint16(byteOffset: number, value: number, littleEndian: boolean): void;
1351-
1352-
/**
1353-
* Stores an Uint32 value at the specified byte offset from the start of the view.
1354-
* @param byteOffset The place in the buffer at which the value should be set.
1355-
* @param value The value to set.
1356-
* @param littleEndian If false or undefined, a big-endian value should be written,
1357-
* otherwise a little-endian value should be written.
1358-
*/
1359-
setUint32(byteOffset: number, value: number, littleEndian: boolean): void;
1360-
}
1361-
1362-
interface DataViewConstructor {
1363-
new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): DataView;
1364-
}
1365-
declare var DataView: DataViewConstructor;
1366-
13671234
/**
13681235
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
13691236
* number of bytes could not be allocated an exception is raised.
@@ -7355,8 +7222,6 @@ interface HTMLCanvasElement extends HTMLElement {
73557222
* Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
73567223
* @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
73577224
*/
7358-
getContext(contextId: "2d"): CanvasRenderingContext2D;
7359-
getContext(contextId: "experimental-webgl"): WebGLRenderingContext;
73607225
getContext(contextId: string, ...args: any[]): CanvasRenderingContext2D | WebGLRenderingContext;
73617226
/**
73627227
* Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing.
@@ -15838,7 +15703,6 @@ interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
1583815703
overrideMimeType(mime: string): void;
1583915704
send(data?: Document): void;
1584015705
send(data?: string): void;
15841-
send(data?: any): void;
1584215706
setRequestHeader(header: string, value: string): void;
1584315707
DONE: number;
1584415708
HEADERS_RECEIVED: number;
@@ -15993,13 +15857,11 @@ interface DocumentEvent {
1599315857
createEvent(eventInterface:"CloseEvent"): CloseEvent;
1599415858
createEvent(eventInterface:"CommandEvent"): CommandEvent;
1599515859
createEvent(eventInterface:"CompositionEvent"): CompositionEvent;
15996-
createEvent(eventInterface: "CustomEvent"): CustomEvent;
1599715860
createEvent(eventInterface:"DeviceMotionEvent"): DeviceMotionEvent;
1599815861
createEvent(eventInterface:"DeviceOrientationEvent"): DeviceOrientationEvent;
1599915862
createEvent(eventInterface:"DragEvent"): DragEvent;
1600015863
createEvent(eventInterface:"ErrorEvent"): ErrorEvent;
1600115864
createEvent(eventInterface:"Event"): Event;
16002-
createEvent(eventInterface:"Events"): Event;
1600315865
createEvent(eventInterface:"FocusEvent"): FocusEvent;
1600415866
createEvent(eventInterface:"GamepadEvent"): GamepadEvent;
1600515867
createEvent(eventInterface:"HashChangeEvent"): HashChangeEvent;
@@ -16014,12 +15876,8 @@ interface DocumentEvent {
1601415876
createEvent(eventInterface:"MSSiteModeEvent"): MSSiteModeEvent;
1601515877
createEvent(eventInterface:"MessageEvent"): MessageEvent;
1601615878
createEvent(eventInterface:"MouseEvent"): MouseEvent;
16017-
createEvent(eventInterface:"MouseEvents"): MouseEvent;
1601815879
createEvent(eventInterface:"MouseWheelEvent"): MouseWheelEvent;
16019-
createEvent(eventInterface:"MSGestureEvent"): MSGestureEvent;
16020-
createEvent(eventInterface:"MSPointerEvent"): MSPointerEvent;
1602115880
createEvent(eventInterface:"MutationEvent"): MutationEvent;
16022-
createEvent(eventInterface:"MutationEvents"): MutationEvent;
1602315881
createEvent(eventInterface:"NavigationCompletedEvent"): NavigationCompletedEvent;
1602415882
createEvent(eventInterface:"NavigationEvent"): NavigationEvent;
1602515883
createEvent(eventInterface:"NavigationEventWithReferrer"): NavigationEventWithReferrer;
@@ -16030,15 +15888,13 @@ interface DocumentEvent {
1603015888
createEvent(eventInterface:"PopStateEvent"): PopStateEvent;
1603115889
createEvent(eventInterface:"ProgressEvent"): ProgressEvent;
1603215890
createEvent(eventInterface:"SVGZoomEvent"): SVGZoomEvent;
16033-
createEvent(eventInterface:"SVGZoomEvents"): SVGZoomEvent;
1603415891
createEvent(eventInterface:"ScriptNotifyEvent"): ScriptNotifyEvent;
1603515892
createEvent(eventInterface:"StorageEvent"): StorageEvent;
1603615893
createEvent(eventInterface:"TextEvent"): TextEvent;
1603715894
createEvent(eventInterface:"TouchEvent"): TouchEvent;
1603815895
createEvent(eventInterface:"TrackEvent"): TrackEvent;
1603915896
createEvent(eventInterface:"TransitionEvent"): TransitionEvent;
1604015897
createEvent(eventInterface:"UIEvent"): UIEvent;
16041-
createEvent(eventInterface:"UIEvents"): UIEvent;
1604215898
createEvent(eventInterface:"UnviewableContentIdentifiedEvent"): UnviewableContentIdentifiedEvent;
1604315899
createEvent(eventInterface:"WebGLContextEvent"): WebGLContextEvent;
1604415900
createEvent(eventInterface:"WheelEvent"): WheelEvent;

0 commit comments

Comments
 (0)