Skip to content

Commit 7fc6142

Browse files
committed
Merge branch 'master' into getTypeDefinitionAtPosition
Conflicts: src/services/services.ts
2 parents f073981 + 282c1d2 commit 7fc6142

File tree

698 files changed

+16591
-12098
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

698 files changed

+16591
-12098
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@ scripts/*.js.map
4646
coverage/
4747
internal/
4848
**/.DS_Store
49+
.settings/

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ scripts
44
src
55
tests
66
Jakefile
7-
.travis.yml
7+
.travis.yml
8+
.settings/

bin/lib.core.es6.d.ts

Lines changed: 52 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,11 +1237,41 @@ interface SymbolConstructor {
12371237
isConcatSpreadable: symbol;
12381238

12391239
/**
1240-
* A method that returns the default iterator for an object.Called by the semantics of the
1240+
* A method that returns the default iterator for an object. Called by the semantics of the
12411241
* for-of statement.
12421242
*/
12431243
iterator: symbol;
12441244

1245+
/**
1246+
* A regular expression method that matches the regular expression against a string. Called
1247+
* by the String.prototype.match method.
1248+
*/
1249+
match: symbol;
1250+
1251+
/**
1252+
* A regular expression method that replaces matched substrings of a string. Called by the
1253+
* String.prototype.replace method.
1254+
*/
1255+
replace: symbol;
1256+
1257+
/**
1258+
* A regular expression method that returns the index within a string that matches the
1259+
* regular expression. Called by the String.prototype.search method.
1260+
*/
1261+
search: symbol;
1262+
1263+
/**
1264+
* A function valued property that is the constructor function that is used to create
1265+
* derived objects.
1266+
*/
1267+
species: symbol;
1268+
1269+
/**
1270+
* A regular expression method that splits a string at the indices that match the regular
1271+
* expression. Called by the String.prototype.split method.
1272+
*/
1273+
split: symbol;
1274+
12451275
/**
12461276
* A method that converts an object to a corresponding primitive value.Called by the ToPrimitive
12471277
* abstract operation.
@@ -4728,6 +4758,16 @@ declare module Reflect {
47284758
function setPrototypeOf(target: any, proto: any): boolean;
47294759
}
47304760

4761+
interface PromiseLike<T> {
4762+
/**
4763+
* Attaches callbacks for the resolution and/or rejection of the Promise.
4764+
* @param onfulfilled The callback to execute when the Promise is resolved.
4765+
* @param onrejected The callback to execute when the Promise is rejected.
4766+
* @returns A Promise for the completion of which ever callback is executed.
4767+
*/
4768+
then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => TResult | PromiseLike<TResult>): PromiseLike<TResult>;
4769+
}
4770+
47314771
/**
47324772
* Represents the completion of an asynchronous operation
47334773
*/
@@ -4738,14 +4778,16 @@ interface Promise<T> {
47384778
* @param onrejected The callback to execute when the Promise is rejected.
47394779
* @returns A Promise for the completion of which ever callback is executed.
47404780
*/
4741-
then<TResult>(onfulfilled?: (value: T) => TResult | Promise<TResult>, onrejected?: (reason: any) => TResult | Promise<TResult>): Promise<TResult>;
4781+
then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => TResult | PromiseLike<TResult>): Promise<TResult>;
47424782

47434783
/**
47444784
* Attaches a callback for only the rejection of the Promise.
47454785
* @param onrejected The callback to execute when the Promise is rejected.
47464786
* @returns A Promise for the completion of the callback.
47474787
*/
4748-
catch(onrejected?: (reason: any) => T | Promise<T>): Promise<T>;
4788+
catch(onrejected?: (reason: any) => T | PromiseLike<T>): Promise<T>;
4789+
4790+
[Symbol.toStringTag]: string;
47494791
}
47504792

47514793
interface PromiseConstructor {
@@ -4756,37 +4798,27 @@ interface PromiseConstructor {
47564798

47574799
/**
47584800
* Creates a new Promise.
4759-
* @param init A callback used to initialize the promise. This callback is passed two arguments:
4801+
* @param executor A callback used to initialize the promise. This callback is passed two arguments:
47604802
* a resolve callback used resolve the promise with a value or the result of another promise,
47614803
* and a reject callback used to reject the promise with a provided reason or error.
47624804
*/
4763-
new <T>(init: (resolve: (value?: T | Promise<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
4764-
4765-
<T>(init: (resolve: (value?: T | Promise<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
4805+
new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
47664806

47674807
/**
47684808
* Creates a Promise that is resolved with an array of results when all of the provided Promises
47694809
* resolve, or rejected when any Promise is rejected.
47704810
* @param values An array of Promises.
47714811
* @returns A new Promise.
47724812
*/
4773-
all<T>(values: (T | Promise<T>)[]): Promise<T[]>;
4774-
4775-
/**
4776-
* Creates a Promise that is resolved with an array of results when all of the provided Promises
4777-
* resolve, or rejected when any Promise is rejected.
4778-
* @param values An array of values.
4779-
* @returns A new Promise.
4780-
*/
4781-
all(values: Promise<void>[]): Promise<void>;
4813+
all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;
47824814

47834815
/**
47844816
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
47854817
* or rejected.
47864818
* @param values An array of Promises.
47874819
* @returns A new Promise.
47884820
*/
4789-
race<T>(values: (T | Promise<T>)[]): Promise<T>;
4821+
race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
47904822

47914823
/**
47924824
* Creates a new rejected promise for the provided reason.
@@ -4807,13 +4839,15 @@ interface PromiseConstructor {
48074839
* @param value A promise.
48084840
* @returns A promise whose internal state matches the provided promise.
48094841
*/
4810-
resolve<T>(value: T | Promise<T>): Promise<T>;
4842+
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
48114843

48124844
/**
48134845
* Creates a new resolved promise .
48144846
* @returns A resolved promise.
48154847
*/
48164848
resolve(): Promise<void>;
4849+
4850+
[Symbol.species]: Function;
48174851
}
48184852

48194853
declare var Promise: PromiseConstructor;

bin/lib.d.ts

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,6 +1231,139 @@ 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+
12341367
/**
12351368
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
12361369
* number of bytes could not be allocated an exception is raised.
@@ -7222,6 +7355,8 @@ interface HTMLCanvasElement extends HTMLElement {
72227355
* 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.
72237356
* @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");
72247357
*/
7358+
getContext(contextId: "2d"): CanvasRenderingContext2D;
7359+
getContext(contextId: "experimental-webgl"): WebGLRenderingContext;
72257360
getContext(contextId: string, ...args: any[]): CanvasRenderingContext2D | WebGLRenderingContext;
72267361
/**
72277362
* Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing.
@@ -15857,11 +15992,13 @@ interface DocumentEvent {
1585715992
createEvent(eventInterface:"CloseEvent"): CloseEvent;
1585815993
createEvent(eventInterface:"CommandEvent"): CommandEvent;
1585915994
createEvent(eventInterface:"CompositionEvent"): CompositionEvent;
15995+
createEvent(eventInterface: "CustomEvent"): CustomEvent;
1586015996
createEvent(eventInterface:"DeviceMotionEvent"): DeviceMotionEvent;
1586115997
createEvent(eventInterface:"DeviceOrientationEvent"): DeviceOrientationEvent;
1586215998
createEvent(eventInterface:"DragEvent"): DragEvent;
1586315999
createEvent(eventInterface:"ErrorEvent"): ErrorEvent;
1586416000
createEvent(eventInterface:"Event"): Event;
16001+
createEvent(eventInterface:"Events"): Event;
1586516002
createEvent(eventInterface:"FocusEvent"): FocusEvent;
1586616003
createEvent(eventInterface:"GamepadEvent"): GamepadEvent;
1586716004
createEvent(eventInterface:"HashChangeEvent"): HashChangeEvent;
@@ -15876,8 +16013,12 @@ interface DocumentEvent {
1587616013
createEvent(eventInterface:"MSSiteModeEvent"): MSSiteModeEvent;
1587716014
createEvent(eventInterface:"MessageEvent"): MessageEvent;
1587816015
createEvent(eventInterface:"MouseEvent"): MouseEvent;
16016+
createEvent(eventInterface:"MouseEvents"): MouseEvent;
1587916017
createEvent(eventInterface:"MouseWheelEvent"): MouseWheelEvent;
16018+
createEvent(eventInterface:"MSGestureEvent"): MSGestureEvent;
16019+
createEvent(eventInterface:"MSPointerEvent"): MSPointerEvent;
1588016020
createEvent(eventInterface:"MutationEvent"): MutationEvent;
16021+
createEvent(eventInterface:"MutationEvents"): MutationEvent;
1588116022
createEvent(eventInterface:"NavigationCompletedEvent"): NavigationCompletedEvent;
1588216023
createEvent(eventInterface:"NavigationEvent"): NavigationEvent;
1588316024
createEvent(eventInterface:"NavigationEventWithReferrer"): NavigationEventWithReferrer;
@@ -15888,13 +16029,15 @@ interface DocumentEvent {
1588816029
createEvent(eventInterface:"PopStateEvent"): PopStateEvent;
1588916030
createEvent(eventInterface:"ProgressEvent"): ProgressEvent;
1589016031
createEvent(eventInterface:"SVGZoomEvent"): SVGZoomEvent;
16032+
createEvent(eventInterface:"SVGZoomEvents"): SVGZoomEvent;
1589116033
createEvent(eventInterface:"ScriptNotifyEvent"): ScriptNotifyEvent;
1589216034
createEvent(eventInterface:"StorageEvent"): StorageEvent;
1589316035
createEvent(eventInterface:"TextEvent"): TextEvent;
1589416036
createEvent(eventInterface:"TouchEvent"): TouchEvent;
1589516037
createEvent(eventInterface:"TrackEvent"): TrackEvent;
1589616038
createEvent(eventInterface:"TransitionEvent"): TransitionEvent;
1589716039
createEvent(eventInterface:"UIEvent"): UIEvent;
16040+
createEvent(eventInterface:"UIEvents"): UIEvent;
1589816041
createEvent(eventInterface:"UnviewableContentIdentifiedEvent"): UnviewableContentIdentifiedEvent;
1589916042
createEvent(eventInterface:"WebGLContextEvent"): WebGLContextEvent;
1590016043
createEvent(eventInterface:"WheelEvent"): WheelEvent;

0 commit comments

Comments
 (0)