typescript-src 1.4.1.3 → 1.6.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +7 -0
  3. data/lib/typescript-src.rb +6 -1
  4. data/lib/typescript-src/support/typescript/.editorconfig +10 -0
  5. data/lib/typescript-src/support/typescript/.gitattributes +2 -0
  6. data/lib/typescript-src/support/typescript/.npmignore +8 -7
  7. data/lib/typescript-src/support/typescript/AUTHORS.md +70 -0
  8. data/lib/typescript-src/support/typescript/CONTRIBUTING.md +49 -18
  9. data/lib/typescript-src/support/typescript/Jakefile.js +795 -0
  10. data/lib/typescript-src/support/typescript/README.md +20 -4
  11. data/lib/typescript-src/support/typescript/bin/tsc +2 -2
  12. data/lib/typescript-src/support/typescript/bin/tsserver +2 -0
  13. data/lib/typescript-src/support/typescript/lib/lib.core.d.ts +3840 -0
  14. data/lib/typescript-src/support/typescript/{bin → lib}/lib.core.es6.d.ts +1747 -1420
  15. data/lib/typescript-src/support/typescript/{bin/lib.es6.d.ts → lib/lib.d.ts} +12054 -11947
  16. data/lib/typescript-src/support/typescript/{bin → lib}/lib.dom.d.ts +11167 -11015
  17. data/lib/typescript-src/support/typescript/{bin/lib.d.ts → lib/lib.es6.d.ts} +15023 -10641
  18. data/lib/typescript-src/support/typescript/lib/lib.scriptHost.d.ts +294 -0
  19. data/lib/typescript-src/support/typescript/lib/lib.webworker.d.ts +1202 -0
  20. data/lib/typescript-src/support/typescript/lib/tsc.js +31079 -0
  21. data/lib/typescript-src/support/typescript/lib/tsserver.js +44390 -0
  22. data/lib/typescript-src/support/typescript/lib/typescript.d.ts +2145 -0
  23. data/lib/typescript-src/support/typescript/lib/typescript.js +49349 -0
  24. data/lib/typescript-src/support/typescript/lib/typescriptServices.d.ts +2143 -0
  25. data/lib/typescript-src/support/typescript/lib/typescriptServices.js +49349 -0
  26. data/lib/typescript-src/support/typescript/package.json +77 -69
  27. data/lib/typescript-src/support/typescript/tslint.json +34 -0
  28. data/lib/typescript-src/version.rb +1 -1
  29. metadata +21 -15
  30. data/lib/typescript-src/support/typescript/bin/lib.core.d.ts +0 -1164
  31. data/lib/typescript-src/support/typescript/bin/lib.scriptHost.d.ts +0 -38
  32. data/lib/typescript-src/support/typescript/bin/lib.webworker.d.ts +0 -1652
  33. data/lib/typescript-src/support/typescript/bin/tsc.js +0 -18289
  34. data/lib/typescript-src/support/typescript/bin/typescript.d.ts +0 -1849
  35. data/lib/typescript-src/support/typescript/bin/typescriptServices.d.ts +0 -1849
  36. data/lib/typescript-src/support/typescript/bin/typescriptServices.js +0 -26273
  37. data/lib/typescript-src/support/typescript/bin/typescriptServices_internal.d.ts +0 -258
  38. data/lib/typescript-src/support/typescript/bin/typescript_internal.d.ts +0 -258
@@ -1,38 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
- this file except in compliance with the License. You may obtain a copy of the
5
- License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
- /// <reference path="lib.core.d.ts" />
17
-
18
-
19
- /////////////////////////////
20
- /// Windows Script Host APIS
21
- /////////////////////////////
22
-
23
- declare var ActiveXObject: { new (s: string): any; };
24
-
25
- interface ITextWriter {
26
- Write(s: string): void;
27
- WriteLine(s: string): void;
28
- Close(): void;
29
- }
30
-
31
- declare var WScript: {
32
- Echo(s: any): void;
33
- StdErr: ITextWriter;
34
- StdOut: ITextWriter;
35
- Arguments: { length: number; Item(n: number): string; };
36
- ScriptFullName: string;
37
- Quit(exitCode?: number): number;
38
- }
@@ -1,1652 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
- this file except in compliance with the License. You may obtain a copy of the
5
- License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
- /// <reference path="lib.core.d.ts" />
17
-
18
- /////////////////////////////
19
- /// IE10 ECMAScript Extensions
20
- /////////////////////////////
21
-
22
- /**
23
- * Represents a raw buffer of binary data, which is used to store data for the
24
- * different typed arrays. ArrayBuffers cannot be read from or written to directly,
25
- * but can be passed to a typed array or DataView Object to interpret the raw
26
- * buffer as needed.
27
- */
28
- interface ArrayBuffer {
29
- /**
30
- * Read-only. The length of the ArrayBuffer (in bytes).
31
- */
32
- byteLength: number;
33
-
34
- /**
35
- * Returns a section of an ArrayBuffer.
36
- */
37
- slice(begin:number, end?:number): ArrayBuffer;
38
- }
39
-
40
- declare var ArrayBuffer: {
41
- prototype: ArrayBuffer;
42
- new (byteLength: number): ArrayBuffer;
43
- }
44
-
45
- interface ArrayBufferView {
46
- buffer: ArrayBuffer;
47
- byteOffset: number;
48
- byteLength: number;
49
- }
50
-
51
- /**
52
- * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
53
- */
54
- interface Int8Array extends ArrayBufferView {
55
- /**
56
- * The size in bytes of each element in the array.
57
- */
58
- BYTES_PER_ELEMENT: number;
59
-
60
- /**
61
- * The length of the array.
62
- */
63
- length: number;
64
-
65
- [index: number]: number;
66
-
67
- /**
68
- * Gets the element at the specified index.
69
- * @param index The index at which to get the element of the array.
70
- */
71
- get(index: number): number;
72
-
73
- /**
74
- * Sets a value or an array of values.
75
- * @param index The index of the location to set.
76
- * @param value The value to set.
77
- */
78
- set(index: number, value: number): void;
79
-
80
- /**
81
- * Sets a value or an array of values.
82
- * @param array A typed or untyped array of values to set.
83
- * @param offset The index in the current array at which the values are to be written.
84
- */
85
- set(array: Int8Array, offset?: number): void;
86
-
87
- /**
88
- * Sets a value or an array of values.
89
- * @param array A typed or untyped array of values to set.
90
- * @param offset The index in the current array at which the values are to be written.
91
- */
92
- set(array: number[], offset?: number): void;
93
-
94
- /**
95
- * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements at begin, inclusive, up to end, exclusive.
96
- * @param begin The index of the beginning of the array.
97
- * @param end The index of the end of the array.
98
- */
99
- subarray(begin: number, end?: number): Int8Array;
100
- }
101
- declare var Int8Array: {
102
- prototype: Int8Array;
103
- new (length: number): Int8Array;
104
- new (array: Int8Array): Int8Array;
105
- new (array: number[]): Int8Array;
106
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array;
107
- BYTES_PER_ELEMENT: number;
108
- }
109
-
110
- /**
111
- * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
112
- */
113
- interface Uint8Array extends ArrayBufferView {
114
- /**
115
- * The size in bytes of each element in the array.
116
- */
117
- BYTES_PER_ELEMENT: number;
118
-
119
- /**
120
- * The length of the array.
121
- */
122
- length: number;
123
- [index: number]: number;
124
-
125
- /**
126
- * Gets the element at the specified index.
127
- * @param index The index at which to get the element of the array.
128
- */
129
- get(index: number): number;
130
-
131
- /**
132
- * Sets a value or an array of values.
133
- * @param index The index of the location to set.
134
- * @param value The value to set.
135
- */
136
- set(index: number, value: number): void;
137
-
138
- /**
139
- * Sets a value or an array of values.
140
- * @param array A typed or untyped array of values to set.
141
- * @param offset The index in the current array at which the values are to be written.
142
- */
143
- set(array: Uint8Array, offset?: number): void;
144
-
145
- /**
146
- * Sets a value or an array of values.
147
- * @param array A typed or untyped array of values to set.
148
- * @param offset The index in the current array at which the values are to be written.
149
- */
150
- set(array: number[], offset?: number): void;
151
-
152
- /**
153
- * Gets a new Uint8Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
154
- * @param begin The index of the beginning of the array.
155
- * @param end The index of the end of the array.
156
- */
157
- subarray(begin: number, end?: number): Uint8Array;
158
- }
159
- declare var Uint8Array: {
160
- prototype: Uint8Array;
161
- new (length: number): Uint8Array;
162
- new (array: Uint8Array): Uint8Array;
163
- new (array: number[]): Uint8Array;
164
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8Array;
165
- BYTES_PER_ELEMENT: number;
166
- }
167
-
168
- /**
169
- * A typed array of 16-bit integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
170
- */
171
- interface Int16Array extends ArrayBufferView {
172
- /**
173
- * The size in bytes of each element in the array.
174
- */
175
- BYTES_PER_ELEMENT: number;
176
-
177
- /**
178
- * The length of the array.
179
- */
180
- length: number;
181
- [index: number]: number;
182
-
183
- /**
184
- * Gets the element at the specified index.
185
- * @param index The index at which to get the element of the array.
186
- */
187
- get(index: number): number;
188
-
189
- /**
190
- * Sets a value or an array of values.
191
- * @param index The index of the location to set.
192
- * @param value The value to set.
193
- */
194
- set(index: number, value: number): void;
195
-
196
- /**
197
- * Sets a value or an array of values.
198
- * @param array A typed or untyped array of values to set.
199
- * @param offset The index in the current array at which the values are to be written.
200
- */
201
- set(array: Int16Array, offset?: number): void;
202
-
203
- /**
204
- * Sets a value or an array of values.
205
- * @param array A typed or untyped array of values to set.
206
- * @param offset The index in the current array at which the values are to be written.
207
- */
208
- set(array: number[], offset?: number): void;
209
-
210
- /**
211
- * Gets a new Int16Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
212
- * @param begin The index of the beginning of the array.
213
- * @param end The index of the end of the array.
214
- */
215
- subarray(begin: number, end?: number): Int16Array;
216
- }
217
- declare var Int16Array: {
218
- prototype: Int16Array;
219
- new (length: number): Int16Array;
220
- new (array: Int16Array): Int16Array;
221
- new (array: number[]): Int16Array;
222
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int16Array;
223
- BYTES_PER_ELEMENT: number;
224
- }
225
-
226
- /**
227
- * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
228
- */
229
- interface Uint16Array extends ArrayBufferView {
230
- /**
231
- * The size in bytes of each element in the array.
232
- */
233
- BYTES_PER_ELEMENT: number;
234
-
235
- /**
236
- * The length of the array.
237
- */
238
- length: number;
239
- [index: number]: number;
240
-
241
- /**
242
- * Gets the element at the specified index.
243
- * @param index The index at which to get the element of the array.
244
- */
245
- get(index: number): number;
246
-
247
- /**
248
- * Sets a value or an array of values.
249
- * @param index The index of the location to set.
250
- * @param value The value to set.
251
- */
252
- set(index: number, value: number): void;
253
-
254
- /**
255
- * Sets a value or an array of values.
256
- * @param array A typed or untyped array of values to set.
257
- * @param offset The index in the current array at which the values are to be written.
258
- */
259
- set(array: Uint16Array, offset?: number): void;
260
-
261
- /**
262
- * Sets a value or an array of values.
263
- * @param array A typed or untyped array of values to set.
264
- * @param offset The index in the current array at which the values are to be written.
265
- */
266
- set(array: number[], offset?: number): void;
267
-
268
- /**
269
- * Gets a new Uint16Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
270
- * @param begin The index of the beginning of the array.
271
- * @param end The index of the end of the array.
272
- */
273
- subarray(begin: number, end?: number): Uint16Array;
274
- }
275
- declare var Uint16Array: {
276
- prototype: Uint16Array;
277
- new (length: number): Uint16Array;
278
- new (array: Uint16Array): Uint16Array;
279
- new (array: number[]): Uint16Array;
280
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint16Array;
281
- BYTES_PER_ELEMENT: number;
282
- }
283
-
284
- /**
285
- * A typed array of 32-bit integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
286
- */
287
- interface Int32Array extends ArrayBufferView {
288
- /**
289
- * The size in bytes of each element in the array.
290
- */
291
- BYTES_PER_ELEMENT: number;
292
-
293
- /**
294
- * The length of the array.
295
- */
296
- length: number;
297
- [index: number]: number;
298
-
299
- /**
300
- * Gets the element at the specified index.
301
- * @param index The index at which to get the element of the array.
302
- */
303
- get(index: number): number;
304
-
305
- /**
306
- * Sets a value or an array of values.
307
- * @param index The index of the location to set.
308
- * @param value The value to set.
309
- */
310
- set(index: number, value: number): void;
311
-
312
- /**
313
- * Sets a value or an array of values.
314
- * @param array A typed or untyped array of values to set.
315
- * @param offset The index in the current array at which the values are to be written.
316
- */
317
- set(array: Int32Array, offset?: number): void;
318
-
319
- /**
320
- * Sets a value or an array of values.
321
- * @param array A typed or untyped array of values to set.
322
- * @param offset The index in the current array at which the values are to be written.
323
- */
324
- set(array: number[], offset?: number): void;
325
-
326
- /**
327
- * Gets a new Int32Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
328
- * @param begin The index of the beginning of the array.
329
- * @param end The index of the end of the array.
330
- */
331
- subarray(begin: number, end?: number): Int32Array;
332
- }
333
- declare var Int32Array: {
334
- prototype: Int32Array;
335
- new (length: number): Int32Array;
336
- new (array: Int32Array): Int32Array;
337
- new (array: number[]): Int32Array;
338
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int32Array;
339
- BYTES_PER_ELEMENT: number;
340
- }
341
-
342
- /**
343
- * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
344
- */
345
- interface Uint32Array extends ArrayBufferView {
346
- /**
347
- * The size in bytes of each element in the array.
348
- */
349
- BYTES_PER_ELEMENT: number;
350
-
351
- /**
352
- * The length of the array.
353
- */
354
- length: number;
355
- [index: number]: number;
356
-
357
- /**
358
- * Gets the element at the specified index.
359
- * @param index The index at which to get the element of the array.
360
- */
361
- get(index: number): number;
362
-
363
- /**
364
- * Sets a value or an array of values.
365
- * @param index The index of the location to set.
366
- * @param value The value to set.
367
- */
368
- set(index: number, value: number): void;
369
-
370
- /**
371
- * Sets a value or an array of values.
372
- * @param array A typed or untyped array of values to set.
373
- * @param offset The index in the current array at which the values are to be written.
374
- */
375
- set(array: Uint32Array, offset?: number): void;
376
-
377
- /**
378
- * Sets a value or an array of values.
379
- * @param array A typed or untyped array of values to set.
380
- * @param offset The index in the current array at which the values are to be written.
381
- */
382
- set(array: number[], offset?: number): void;
383
-
384
- /**
385
- * Gets a new Int8Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
386
- * @param begin The index of the beginning of the array.
387
- * @param end The index of the end of the array.
388
- */
389
- subarray(begin: number, end?: number): Uint32Array;
390
- }
391
- declare var Uint32Array: {
392
- prototype: Uint32Array;
393
- new (length: number): Uint32Array;
394
- new (array: Uint32Array): Uint32Array;
395
- new (array: number[]): Uint32Array;
396
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint32Array;
397
- BYTES_PER_ELEMENT: number;
398
- }
399
-
400
- /**
401
- * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
402
- */
403
- interface Float32Array extends ArrayBufferView {
404
- /**
405
- * The size in bytes of each element in the array.
406
- */
407
- BYTES_PER_ELEMENT: number;
408
-
409
- /**
410
- * The length of the array.
411
- */
412
- length: number;
413
- [index: number]: number;
414
-
415
- /**
416
- * Gets the element at the specified index.
417
- * @param index The index at which to get the element of the array.
418
- */
419
- get(index: number): number;
420
-
421
- /**
422
- * Sets a value or an array of values.
423
- * @param index The index of the location to set.
424
- * @param value The value to set.
425
- */
426
- set(index: number, value: number): void;
427
-
428
- /**
429
- * Sets a value or an array of values.
430
- * @param array A typed or untyped array of values to set.
431
- * @param offset The index in the current array at which the values are to be written.
432
- */
433
- set(array: Float32Array, offset?: number): void;
434
-
435
- /**
436
- * Sets a value or an array of values.
437
- * @param array A typed or untyped array of values to set.
438
- * @param offset The index in the current array at which the values are to be written.
439
- */
440
- set(array: number[], offset?: number): void;
441
-
442
- /**
443
- * Gets a new Float32Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
444
- * @param begin The index of the beginning of the array.
445
- * @param end The index of the end of the array.
446
- */
447
- subarray(begin: number, end?: number): Float32Array;
448
- }
449
- declare var Float32Array: {
450
- prototype: Float32Array;
451
- new (length: number): Float32Array;
452
- new (array: Float32Array): Float32Array;
453
- new (array: number[]): Float32Array;
454
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float32Array;
455
- BYTES_PER_ELEMENT: number;
456
- }
457
-
458
- /**
459
- * A typed array of 64-bit float values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
460
- */
461
- interface Float64Array extends ArrayBufferView {
462
- /**
463
- * The size in bytes of each element in the array.
464
- */
465
- BYTES_PER_ELEMENT: number;
466
-
467
- /**
468
- * The length of the array.
469
- */
470
- length: number;
471
- [index: number]: number;
472
-
473
- /**
474
- * Gets the element at the specified index.
475
- * @param index The index at which to get the element of the array.
476
- */
477
- get(index: number): number;
478
-
479
- /**
480
- * Sets a value or an array of values.
481
- * @param index The index of the location to set.
482
- * @param value The value to set.
483
- */
484
- set(index: number, value: number): void;
485
-
486
- /**
487
- * Sets a value or an array of values.
488
- * @param array A typed or untyped array of values to set.
489
- * @param offset The index in the current array at which the values are to be written.
490
- */
491
- set(array: Float64Array, offset?: number): void;
492
-
493
- /**
494
- * Sets a value or an array of values.
495
- * @param array A typed or untyped array of values to set.
496
- * @param offset The index in the current array at which the values are to be written.
497
- */
498
- set(array: number[], offset?: number): void;
499
-
500
- /**
501
- * Gets a new Float64Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
502
- * @param begin The index of the beginning of the array.
503
- * @param end The index of the end of the array.
504
- */
505
- subarray(begin: number, end?: number): Float64Array;
506
- }
507
- declare var Float64Array: {
508
- prototype: Float64Array;
509
- new (length: number): Float64Array;
510
- new (array: Float64Array): Float64Array;
511
- new (array: number[]): Float64Array;
512
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float64Array;
513
- BYTES_PER_ELEMENT: number;
514
- }
515
-
516
- /**
517
- * You can use a DataView object to read and write the different kinds of binary data to any location in the ArrayBuffer.
518
- */
519
- interface DataView extends ArrayBufferView {
520
- /**
521
- * Gets the Int8 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
522
- * @param byteOffset The place in the buffer at which the value should be retrieved.
523
- */
524
- getInt8(byteOffset: number): number;
525
-
526
- /**
527
- * Gets the Uint8 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
528
- * @param byteOffset The place in the buffer at which the value should be retrieved.
529
- */
530
- getUint8(byteOffset: number): number;
531
-
532
- /**
533
- * Gets the Int16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
534
- * @param byteOffset The place in the buffer at which the value should be retrieved.
535
- */
536
- getInt16(byteOffset: number, littleEndian?: boolean): number;
537
-
538
- /**
539
- * Gets the Uint16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
540
- * @param byteOffset The place in the buffer at which the value should be retrieved.
541
- */
542
- getUint16(byteOffset: number, littleEndian?: boolean): number;
543
-
544
- /**
545
- * Gets the Int32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
546
- * @param byteOffset The place in the buffer at which the value should be retrieved.
547
- */
548
- getInt32(byteOffset: number, littleEndian?: boolean): number;
549
-
550
- /**
551
- * Gets the Uint32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
552
- * @param byteOffset The place in the buffer at which the value should be retrieved.
553
- */
554
- getUint32(byteOffset: number, littleEndian?: boolean): number;
555
-
556
- /**
557
- * Gets the Float32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
558
- * @param byteOffset The place in the buffer at which the value should be retrieved.
559
- */
560
- getFloat32(byteOffset: number, littleEndian?: boolean): number;
561
-
562
- /**
563
- * Gets the Float64 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
564
- * @param byteOffset The place in the buffer at which the value should be retrieved.
565
- */
566
- getFloat64(byteOffset: number, littleEndian?: boolean): number;
567
-
568
- /**
569
- * Stores an Int8 value at the specified byte offset from the start of the view.
570
- * @param byteOffset The place in the buffer at which the value should be set.
571
- * @param value The value to set.
572
- */
573
- setInt8(byteOffset: number, value: number): void;
574
-
575
- /**
576
- * Stores an Uint8 value at the specified byte offset from the start of the view.
577
- * @param byteOffset The place in the buffer at which the value should be set.
578
- * @param value The value to set.
579
- */
580
- setUint8(byteOffset: number, value: number): void;
581
-
582
- /**
583
- * Stores an Int16 value at the specified byte offset from the start of the view.
584
- * @param byteOffset The place in the buffer at which the value should be set.
585
- * @param value The value to set.
586
- * @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
587
- */
588
- setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
589
-
590
- /**
591
- * Stores an Uint16 value at the specified byte offset from the start of the view.
592
- * @param byteOffset The place in the buffer at which the value should be set.
593
- * @param value The value to set.
594
- * @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
595
- */
596
- setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
597
-
598
- /**
599
- * Stores an Int32 value at the specified byte offset from the start of the view.
600
- * @param byteOffset The place in the buffer at which the value should be set.
601
- * @param value The value to set.
602
- * @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
603
- */
604
- setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
605
-
606
- /**
607
- * Stores an Uint32 value at the specified byte offset from the start of the view.
608
- * @param byteOffset The place in the buffer at which the value should be set.
609
- * @param value The value to set.
610
- * @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
611
- */
612
- setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
613
-
614
- /**
615
- * Stores an Float32 value at the specified byte offset from the start of the view.
616
- * @param byteOffset The place in the buffer at which the value should be set.
617
- * @param value The value to set.
618
- * @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
619
- */
620
- setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
621
-
622
- /**
623
- * Stores an Float64 value at the specified byte offset from the start of the view.
624
- * @param byteOffset The place in the buffer at which the value should be set.
625
- * @param value The value to set.
626
- * @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
627
- */
628
- setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
629
- }
630
- declare var DataView: {
631
- prototype: DataView;
632
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): DataView;
633
- }
634
-
635
- /////////////////////////////
636
- /// IE11 ECMAScript Extensions
637
- /////////////////////////////
638
-
639
- interface Map<K, V> {
640
- clear(): void;
641
- delete(key: K): boolean;
642
- forEach(callbackfn: (value: V, index: K, map: Map<K, V>) => void, thisArg?: any): void;
643
- get(key: K): V;
644
- has(key: K): boolean;
645
- set(key: K, value: V): Map<K, V>;
646
- size: number;
647
- }
648
- declare var Map: {
649
- new <K, V>(): Map<K, V>;
650
- prototype: Map<any, any>;
651
- }
652
-
653
- interface WeakMap<K, V> {
654
- clear(): void;
655
- delete(key: K): boolean;
656
- get(key: K): V;
657
- has(key: K): boolean;
658
- set(key: K, value: V): WeakMap<K, V>;
659
- }
660
- declare var WeakMap: {
661
- new <K, V>(): WeakMap<K, V>;
662
- prototype: WeakMap<any, any>;
663
- }
664
-
665
- interface Set<T> {
666
- add(value: T): Set<T>;
667
- clear(): void;
668
- delete(value: T): boolean;
669
- forEach(callbackfn: (value: T, index: T, set: Set<T>) => void, thisArg?: any): void;
670
- has(value: T): boolean;
671
- size: number;
672
- }
673
- declare var Set: {
674
- new <T>(): Set<T>;
675
- prototype: Set<any>;
676
- }
677
- /////////////////////////////
678
- /// ECMAScript Internationalization API
679
- /////////////////////////////
680
-
681
- declare module Intl {
682
- interface CollatorOptions {
683
- usage?: string;
684
- localeMatcher?: string;
685
- numeric?: boolean;
686
- caseFirst?: string;
687
- sensitivity?: string;
688
- ignorePunctuation?: boolean;
689
- }
690
-
691
- interface ResolvedCollatorOptions {
692
- locale: string;
693
- usage: string;
694
- sensitivity: string;
695
- ignorePunctuation: boolean;
696
- collation: string;
697
- caseFirst: string;
698
- numeric: boolean;
699
- }
700
-
701
- interface Collator {
702
- compare(x: string, y: string): number;
703
- resolvedOptions(): ResolvedCollatorOptions;
704
- }
705
- var Collator: {
706
- new (locales?: string[], options?: CollatorOptions): Collator;
707
- new (locale?: string, options?: CollatorOptions): Collator;
708
- (locales?: string[], options?: CollatorOptions): Collator;
709
- (locale?: string, options?: CollatorOptions): Collator;
710
- supportedLocalesOf(locales: string[], options?: CollatorOptions): string[];
711
- supportedLocalesOf(locale: string, options?: CollatorOptions): string[];
712
- }
713
-
714
- interface NumberFormatOptions {
715
- localeMatcher?: string;
716
- style?: string;
717
- currency?: string;
718
- currencyDisplay?: string;
719
- useGrouping?: boolean;
720
- }
721
-
722
- interface ResolvedNumberFormatOptions {
723
- locale: string;
724
- numberingSystem: string;
725
- style: string;
726
- currency?: string;
727
- currencyDisplay?: string;
728
- minimumintegerDigits: number;
729
- minimumFractionDigits: number;
730
- maximumFractionDigits: number;
731
- minimumSignificantDigits?: number;
732
- maximumSignificantDigits?: number;
733
- useGrouping: boolean;
734
- }
735
-
736
- interface NumberFormat {
737
- format(value: number): string;
738
- resolvedOptions(): ResolvedNumberFormatOptions;
739
- }
740
- var NumberFormat: {
741
- new (locales?: string[], options?: NumberFormatOptions): Collator;
742
- new (locale?: string, options?: NumberFormatOptions): Collator;
743
- (locales?: string[], options?: NumberFormatOptions): Collator;
744
- (locale?: string, options?: NumberFormatOptions): Collator;
745
- supportedLocalesOf(locales: string[], options?: NumberFormatOptions): string[];
746
- supportedLocalesOf(locale: string, options?: NumberFormatOptions): string[];
747
- }
748
-
749
- interface DateTimeFormatOptions {
750
- localeMatcher?: string;
751
- weekday?: string;
752
- era?: string;
753
- year?: string;
754
- month?: string;
755
- day?: string;
756
- hour?: string;
757
- minute?: string;
758
- second?: string;
759
- timeZoneName?: string;
760
- formatMatcher?: string;
761
- hour12: boolean;
762
- }
763
-
764
- interface ResolvedDateTimeFormatOptions {
765
- locale: string;
766
- calendar: string;
767
- numberingSystem: string;
768
- timeZone: string;
769
- hour12?: boolean;
770
- weekday?: string;
771
- era?: string;
772
- year?: string;
773
- month?: string;
774
- day?: string;
775
- hour?: string;
776
- minute?: string;
777
- second?: string;
778
- timeZoneName?: string;
779
- }
780
-
781
- interface DateTimeFormat {
782
- format(date: number): string;
783
- resolvedOptions(): ResolvedDateTimeFormatOptions;
784
- }
785
- var DateTimeFormat: {
786
- new (locales?: string[], options?: DateTimeFormatOptions): Collator;
787
- new (locale?: string, options?: DateTimeFormatOptions): Collator;
788
- (locales?: string[], options?: DateTimeFormatOptions): Collator;
789
- (locale?: string, options?: DateTimeFormatOptions): Collator;
790
- supportedLocalesOf(locales: string[], options?: DateTimeFormatOptions): string[];
791
- supportedLocalesOf(locale: string, options?: DateTimeFormatOptions): string[];
792
- }
793
- }
794
-
795
- interface String {
796
- /**
797
- * Determines whether two strings are equivalent in the current locale.
798
- * @param that String to compare to target string
799
- * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
800
- * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
801
- */
802
- localeCompare(that: string, locales: string[], options?: Intl.CollatorOptions): number;
803
-
804
- /**
805
- * Determines whether two strings are equivalent in the current locale.
806
- * @param that String to compare to target string
807
- * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
808
- * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
809
- */
810
- localeCompare(that: string, locale: string, options?: Intl.CollatorOptions): number;
811
- }
812
-
813
- interface Number {
814
- /**
815
- * Converts a number to a string by using the current or specified locale.
816
- * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
817
- * @param options An object that contains one or more properties that specify comparison options.
818
- */
819
- toLocaleString(locales?: string[], options?: Intl.NumberFormatOptions): string;
820
-
821
- /**
822
- * Converts a number to a string by using the current or specified locale.
823
- * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
824
- * @param options An object that contains one or more properties that specify comparison options.
825
- */
826
- toLocaleString(locale?: string, options?: Intl.NumberFormatOptions): string;
827
- }
828
-
829
- interface Date {
830
- /**
831
- * Converts a date to a string by using the current or specified locale.
832
- * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
833
- * @param options An object that contains one or more properties that specify comparison options.
834
- */
835
- toLocaleString(locales?: string[], options?: Intl.DateTimeFormatOptions): string;
836
-
837
- /**
838
- * Converts a date to a string by using the current or specified locale.
839
- * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
840
- * @param options An object that contains one or more properties that specify comparison options.
841
- */
842
- toLocaleString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
843
- }
844
-
845
- /////////////////////////////
846
- /// IE Worker APIs
847
- /////////////////////////////
848
-
849
-
850
- interface Console {
851
- info(message?: any, ...optionalParams: any[]): void;
852
- warn(message?: any, ...optionalParams: any[]): void;
853
- error(message?: any, ...optionalParams: any[]): void;
854
- log(message?: any, ...optionalParams: any[]): void;
855
- profile(reportName?: string): void;
856
- assert(test?: boolean, message?: string, ...optionalParams: any[]): void;
857
- msIsIndependentlyComposed(element: any): boolean;
858
- clear(): void;
859
- dir(value?: any, ...optionalParams: any[]): void;
860
- profileEnd(): void;
861
- count(countTitle?: string): void;
862
- groupEnd(): void;
863
- time(timerName?: string): void;
864
- timeEnd(timerName?: string): void;
865
- trace(): void;
866
- group(groupTitle?: string): void;
867
- dirxml(value: any): void;
868
- debug(message?: string, ...optionalParams: any[]): void;
869
- groupCollapsed(groupTitle?: string): void;
870
- select(element: any): void;
871
- }
872
- declare var Console: {
873
- prototype: Console;
874
- new(): Console;
875
- }
876
-
877
- interface NavigatorID {
878
- appVersion: string;
879
- appName: string;
880
- userAgent: string;
881
- platform: string;
882
- product: string;
883
- vendor: string;
884
- }
885
-
886
- interface EventTarget {
887
- removeEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
888
- addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
889
- dispatchEvent(evt: Event): boolean;
890
- }
891
-
892
- interface MessageEvent extends Event {
893
- source: any;
894
- origin: string;
895
- data: any;
896
- ports: any;
897
- initMessageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, dataArg: any, originArg: string, lastEventIdArg: string, sourceArg: any): void;
898
- }
899
- declare var MessageEvent: {
900
- prototype: MessageEvent;
901
- new(): MessageEvent;
902
- }
903
-
904
- interface XMLHttpRequest extends EventTarget {
905
- responseBody: any;
906
- status: number;
907
- readyState: number;
908
- responseText: string;
909
- responseXML: any;
910
- ontimeout: (ev: Event) => any;
911
- statusText: string;
912
- onreadystatechange: (ev: Event) => any;
913
- timeout: number;
914
- onload: (ev: Event) => any;
915
- response: any;
916
- withCredentials: boolean;
917
- onprogress: (ev: ProgressEvent) => any;
918
- onabort: (ev: any) => any;
919
- responseType: string;
920
- onloadend: (ev: ProgressEvent) => any;
921
- upload: XMLHttpRequestEventTarget;
922
- onerror: (ev: ErrorEvent) => any;
923
- onloadstart: (ev: Event) => any;
924
- msCaching: string;
925
- open(method: string, url: string, async?: boolean, user?: string, password?: string): void;
926
- send(data?: any): void;
927
- abort(): void;
928
- getAllResponseHeaders(): string;
929
- setRequestHeader(header: string, value: string): void;
930
- getResponseHeader(header: string): string;
931
- msCachingEnabled(): boolean;
932
- overrideMimeType(mime: string): void;
933
- LOADING: number;
934
- DONE: number;
935
- UNSENT: number;
936
- OPENED: number;
937
- HEADERS_RECEIVED: number;
938
- addEventListener(type: "timeout", listener: (ev: Event) => any, useCapture?: boolean): void;
939
- addEventListener(type: "readystatechange", listener: (ev: Event) => any, useCapture?: boolean): void;
940
- addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
941
- addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
942
- addEventListener(type: "abort", listener: (ev: any) => any, useCapture?: boolean): void;
943
- addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
944
- addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
945
- addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
946
- addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
947
- }
948
- declare var XMLHttpRequest: {
949
- prototype: XMLHttpRequest;
950
- new(): XMLHttpRequest;
951
- LOADING: number;
952
- DONE: number;
953
- UNSENT: number;
954
- OPENED: number;
955
- HEADERS_RECEIVED: number;
956
- create(): XMLHttpRequest;
957
- }
958
-
959
- interface EventListener {
960
- (evt: Event): void;
961
- }
962
-
963
- interface EventException {
964
- code: number;
965
- message: string;
966
- name: string;
967
- toString(): string;
968
- DISPATCH_REQUEST_ERR: number;
969
- UNSPECIFIED_EVENT_TYPE_ERR: number;
970
- }
971
- declare var EventException: {
972
- prototype: EventException;
973
- new(): EventException;
974
- DISPATCH_REQUEST_ERR: number;
975
- UNSPECIFIED_EVENT_TYPE_ERR: number;
976
- }
977
-
978
- interface NavigatorOnLine {
979
- onLine: boolean;
980
- }
981
-
982
- interface Event {
983
- timeStamp: number;
984
- defaultPrevented: boolean;
985
- isTrusted: boolean;
986
- currentTarget: EventTarget;
987
- cancelBubble: boolean;
988
- target: EventTarget;
989
- eventPhase: number;
990
- cancelable: boolean;
991
- type: string;
992
- srcElement: any;
993
- bubbles: boolean;
994
- initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: boolean): void;
995
- stopPropagation(): void;
996
- stopImmediatePropagation(): void;
997
- preventDefault(): void;
998
- CAPTURING_PHASE: number;
999
- AT_TARGET: number;
1000
- BUBBLING_PHASE: number;
1001
- }
1002
- declare var Event: {
1003
- prototype: Event;
1004
- new(): Event;
1005
- CAPTURING_PHASE: number;
1006
- AT_TARGET: number;
1007
- BUBBLING_PHASE: number;
1008
- }
1009
-
1010
- interface ImageData {
1011
- width: number;
1012
- data: number[];
1013
- height: number;
1014
- }
1015
- declare var ImageData: {
1016
- prototype: ImageData;
1017
- new(): ImageData;
1018
- }
1019
-
1020
- interface DOMException {
1021
- code: number;
1022
- message: string;
1023
- name: string;
1024
- toString(): string;
1025
- HIERARCHY_REQUEST_ERR: number;
1026
- NO_MODIFICATION_ALLOWED_ERR: number;
1027
- INVALID_MODIFICATION_ERR: number;
1028
- NAMESPACE_ERR: number;
1029
- INVALID_CHARACTER_ERR: number;
1030
- TYPE_MISMATCH_ERR: number;
1031
- ABORT_ERR: number;
1032
- INVALID_STATE_ERR: number;
1033
- SECURITY_ERR: number;
1034
- NETWORK_ERR: number;
1035
- WRONG_DOCUMENT_ERR: number;
1036
- QUOTA_EXCEEDED_ERR: number;
1037
- INDEX_SIZE_ERR: number;
1038
- DOMSTRING_SIZE_ERR: number;
1039
- SYNTAX_ERR: number;
1040
- SERIALIZE_ERR: number;
1041
- VALIDATION_ERR: number;
1042
- NOT_FOUND_ERR: number;
1043
- URL_MISMATCH_ERR: number;
1044
- PARSE_ERR: number;
1045
- NO_DATA_ALLOWED_ERR: number;
1046
- NOT_SUPPORTED_ERR: number;
1047
- INVALID_ACCESS_ERR: number;
1048
- INUSE_ATTRIBUTE_ERR: number;
1049
- INVALID_NODE_TYPE_ERR: number;
1050
- DATA_CLONE_ERR: number;
1051
- TIMEOUT_ERR: number;
1052
- }
1053
- declare var DOMException: {
1054
- prototype: DOMException;
1055
- new(): DOMException;
1056
- HIERARCHY_REQUEST_ERR: number;
1057
- NO_MODIFICATION_ALLOWED_ERR: number;
1058
- INVALID_MODIFICATION_ERR: number;
1059
- NAMESPACE_ERR: number;
1060
- INVALID_CHARACTER_ERR: number;
1061
- TYPE_MISMATCH_ERR: number;
1062
- ABORT_ERR: number;
1063
- INVALID_STATE_ERR: number;
1064
- SECURITY_ERR: number;
1065
- NETWORK_ERR: number;
1066
- WRONG_DOCUMENT_ERR: number;
1067
- QUOTA_EXCEEDED_ERR: number;
1068
- INDEX_SIZE_ERR: number;
1069
- DOMSTRING_SIZE_ERR: number;
1070
- SYNTAX_ERR: number;
1071
- SERIALIZE_ERR: number;
1072
- VALIDATION_ERR: number;
1073
- NOT_FOUND_ERR: number;
1074
- URL_MISMATCH_ERR: number;
1075
- PARSE_ERR: number;
1076
- NO_DATA_ALLOWED_ERR: number;
1077
- NOT_SUPPORTED_ERR: number;
1078
- INVALID_ACCESS_ERR: number;
1079
- INUSE_ATTRIBUTE_ERR: number;
1080
- INVALID_NODE_TYPE_ERR: number;
1081
- DATA_CLONE_ERR: number;
1082
- TIMEOUT_ERR: number;
1083
- }
1084
-
1085
- interface ErrorEvent extends Event {
1086
- colno: number;
1087
- filename: string;
1088
- error: any;
1089
- lineno: number;
1090
- message: string;
1091
- initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, messageArg: string, filenameArg: string, linenoArg: number): void;
1092
- }
1093
- declare var ErrorEvent: {
1094
- prototype: ErrorEvent;
1095
- new(): ErrorEvent;
1096
- }
1097
-
1098
- interface MSStreamReader extends MSBaseReader {
1099
- error: DOMError;
1100
- readAsArrayBuffer(stream: MSStream, size?: number): void;
1101
- readAsBlob(stream: MSStream, size?: number): void;
1102
- readAsDataURL(stream: MSStream, size?: number): void;
1103
- readAsText(stream: MSStream, encoding?: string, size?: number): void;
1104
- }
1105
- declare var MSStreamReader: {
1106
- prototype: MSStreamReader;
1107
- new(): MSStreamReader;
1108
- }
1109
-
1110
- interface MessageChannel {
1111
- port2: MessagePort;
1112
- port1: MessagePort;
1113
- }
1114
- declare var MessageChannel: {
1115
- prototype: MessageChannel;
1116
- new(): MessageChannel;
1117
- }
1118
-
1119
- interface DOMError {
1120
- name: string;
1121
- toString(): string;
1122
- }
1123
- declare var DOMError: {
1124
- prototype: DOMError;
1125
- new(): DOMError;
1126
- }
1127
-
1128
- interface CloseEvent extends Event {
1129
- wasClean: boolean;
1130
- reason: string;
1131
- code: number;
1132
- initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
1133
- }
1134
- declare var CloseEvent: {
1135
- prototype: CloseEvent;
1136
- new(): CloseEvent;
1137
- }
1138
-
1139
- interface WebSocket extends EventTarget {
1140
- protocol: string;
1141
- readyState: number;
1142
- bufferedAmount: number;
1143
- onopen: (ev: Event) => any;
1144
- extensions: string;
1145
- onmessage: (ev: MessageEvent) => any;
1146
- onclose: (ev: CloseEvent) => any;
1147
- onerror: (ev: ErrorEvent) => any;
1148
- binaryType: string;
1149
- url: string;
1150
- close(code?: number, reason?: string): void;
1151
- send(data: any): void;
1152
- OPEN: number;
1153
- CLOSING: number;
1154
- CONNECTING: number;
1155
- CLOSED: number;
1156
- addEventListener(type: "open", listener: (ev: Event) => any, useCapture?: boolean): void;
1157
- addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
1158
- addEventListener(type: "close", listener: (ev: CloseEvent) => any, useCapture?: boolean): void;
1159
- addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
1160
- addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
1161
- }
1162
- declare var WebSocket: {
1163
- prototype: WebSocket;
1164
- new(url: string, protocols?: string): WebSocket;
1165
- new(url: string, protocols?: string[]): WebSocket;
1166
- OPEN: number;
1167
- CLOSING: number;
1168
- CONNECTING: number;
1169
- CLOSED: number;
1170
- }
1171
-
1172
- interface ProgressEvent extends Event {
1173
- loaded: number;
1174
- lengthComputable: boolean;
1175
- total: number;
1176
- initProgressEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): void;
1177
- }
1178
- declare var ProgressEvent: {
1179
- prototype: ProgressEvent;
1180
- new(): ProgressEvent;
1181
- }
1182
-
1183
- interface IDBObjectStore {
1184
- indexNames: DOMStringList;
1185
- name: string;
1186
- transaction: IDBTransaction;
1187
- keyPath: string;
1188
- count(key?: any): IDBRequest;
1189
- add(value: any, key?: any): IDBRequest;
1190
- clear(): IDBRequest;
1191
- createIndex(name: string, keyPath: string, optionalParameters?: any): IDBIndex;
1192
- put(value: any, key?: any): IDBRequest;
1193
- openCursor(range?: any, direction?: string): IDBRequest;
1194
- deleteIndex(indexName: string): void;
1195
- index(name: string): IDBIndex;
1196
- get(key: any): IDBRequest;
1197
- delete(key: any): IDBRequest;
1198
- }
1199
- declare var IDBObjectStore: {
1200
- prototype: IDBObjectStore;
1201
- new(): IDBObjectStore;
1202
- }
1203
-
1204
- interface IDBVersionChangeEvent extends Event {
1205
- newVersion: number;
1206
- oldVersion: number;
1207
- }
1208
- declare var IDBVersionChangeEvent: {
1209
- prototype: IDBVersionChangeEvent;
1210
- new(): IDBVersionChangeEvent;
1211
- }
1212
-
1213
- interface IDBIndex {
1214
- unique: boolean;
1215
- name: string;
1216
- keyPath: string;
1217
- objectStore: IDBObjectStore;
1218
- count(key?: any): IDBRequest;
1219
- getKey(key: any): IDBRequest;
1220
- openKeyCursor(range?: IDBKeyRange, direction?: string): IDBRequest;
1221
- get(key: any): IDBRequest;
1222
- openCursor(range?: IDBKeyRange, direction?: string): IDBRequest;
1223
- }
1224
- declare var IDBIndex: {
1225
- prototype: IDBIndex;
1226
- new(): IDBIndex;
1227
- }
1228
-
1229
- interface FileList {
1230
- length: number;
1231
- item(index: number): File;
1232
- [index: number]: File;
1233
- }
1234
- declare var FileList: {
1235
- prototype: FileList;
1236
- new(): FileList;
1237
- }
1238
-
1239
- interface IDBCursor {
1240
- source: any;
1241
- direction: string;
1242
- key: any;
1243
- primaryKey: any;
1244
- advance(count: number): void;
1245
- delete(): IDBRequest;
1246
- continue(key?: any): void;
1247
- update(value: any): IDBRequest;
1248
- PREV: string;
1249
- PREV_NO_DUPLICATE: string;
1250
- NEXT: string;
1251
- NEXT_NO_DUPLICATE: string;
1252
- }
1253
- declare var IDBCursor: {
1254
- prototype: IDBCursor;
1255
- new(): IDBCursor;
1256
- PREV: string;
1257
- PREV_NO_DUPLICATE: string;
1258
- NEXT: string;
1259
- NEXT_NO_DUPLICATE: string;
1260
- }
1261
-
1262
- interface File extends Blob {
1263
- lastModifiedDate: any;
1264
- name: string;
1265
- }
1266
- declare var File: {
1267
- prototype: File;
1268
- new(): File;
1269
- }
1270
-
1271
- interface IDBCursorWithValue extends IDBCursor {
1272
- value: any;
1273
- }
1274
- declare var IDBCursorWithValue: {
1275
- prototype: IDBCursorWithValue;
1276
- new(): IDBCursorWithValue;
1277
- }
1278
-
1279
- interface XMLHttpRequestEventTarget extends EventTarget {
1280
- onprogress: (ev: ProgressEvent) => any;
1281
- onerror: (ev: ErrorEvent) => any;
1282
- onload: (ev: Event) => any;
1283
- ontimeout: (ev: Event) => any;
1284
- onabort: (ev: any) => any;
1285
- onloadstart: (ev: Event) => any;
1286
- onloadend: (ev: ProgressEvent) => any;
1287
- addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
1288
- addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
1289
- addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
1290
- addEventListener(type: "timeout", listener: (ev: Event) => any, useCapture?: boolean): void;
1291
- addEventListener(type: "abort", listener: (ev: any) => any, useCapture?: boolean): void;
1292
- addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
1293
- addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
1294
- addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
1295
- }
1296
- declare var XMLHttpRequestEventTarget: {
1297
- prototype: XMLHttpRequestEventTarget;
1298
- new(): XMLHttpRequestEventTarget;
1299
- }
1300
-
1301
- interface MSBaseReader extends EventTarget {
1302
- onprogress: (ev: ProgressEvent) => any;
1303
- readyState: number;
1304
- onabort: (ev: any) => any;
1305
- onloadend: (ev: ProgressEvent) => any;
1306
- onerror: (ev: ErrorEvent) => any;
1307
- onload: (ev: Event) => any;
1308
- onloadstart: (ev: Event) => any;
1309
- result: any;
1310
- abort(): void;
1311
- LOADING: number;
1312
- EMPTY: number;
1313
- DONE: number;
1314
- addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
1315
- addEventListener(type: "abort", listener: (ev: any) => any, useCapture?: boolean): void;
1316
- addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
1317
- addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
1318
- addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
1319
- addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
1320
- addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
1321
- }
1322
-
1323
- interface IDBKeyRange {
1324
- upper: any;
1325
- upperOpen: boolean;
1326
- lower: any;
1327
- lowerOpen: boolean;
1328
- }
1329
- declare var IDBKeyRange: {
1330
- prototype: IDBKeyRange;
1331
- new(): IDBKeyRange;
1332
- bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
1333
- only(value: any): IDBKeyRange;
1334
- lowerBound(bound: any, open?: boolean): IDBKeyRange;
1335
- upperBound(bound: any, open?: boolean): IDBKeyRange;
1336
- }
1337
-
1338
- interface WindowConsole {
1339
- console: Console;
1340
- }
1341
-
1342
- interface IDBTransaction extends EventTarget {
1343
- oncomplete: (ev: Event) => any;
1344
- db: IDBDatabase;
1345
- mode: string;
1346
- error: DOMError;
1347
- onerror: (ev: ErrorEvent) => any;
1348
- onabort: (ev: any) => any;
1349
- abort(): void;
1350
- objectStore(name: string): IDBObjectStore;
1351
- READ_ONLY: string;
1352
- VERSION_CHANGE: string;
1353
- READ_WRITE: string;
1354
- addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void;
1355
- addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
1356
- addEventListener(type: "abort", listener: (ev: any) => any, useCapture?: boolean): void;
1357
- addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
1358
- }
1359
- declare var IDBTransaction: {
1360
- prototype: IDBTransaction;
1361
- new(): IDBTransaction;
1362
- READ_ONLY: string;
1363
- VERSION_CHANGE: string;
1364
- READ_WRITE: string;
1365
- }
1366
-
1367
- interface WindowBase64 {
1368
- btoa(rawString: string): string;
1369
- atob(encodedString: string): string;
1370
- }
1371
-
1372
- interface IDBDatabase extends EventTarget {
1373
- version: string;
1374
- name: string;
1375
- objectStoreNames: DOMStringList;
1376
- onerror: (ev: ErrorEvent) => any;
1377
- onabort: (ev: any) => any;
1378
- createObjectStore(name: string, optionalParameters?: any): IDBObjectStore;
1379
- close(): void;
1380
- transaction(storeNames: any, mode?: string): IDBTransaction;
1381
- deleteObjectStore(name: string): void;
1382
- addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
1383
- addEventListener(type: "abort", listener: (ev: any) => any, useCapture?: boolean): void;
1384
- addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
1385
- }
1386
- declare var IDBDatabase: {
1387
- prototype: IDBDatabase;
1388
- new(): IDBDatabase;
1389
- }
1390
-
1391
- interface DOMStringList {
1392
- length: number;
1393
- contains(str: string): boolean;
1394
- item(index: number): string;
1395
- [index: number]: string;
1396
- }
1397
- declare var DOMStringList: {
1398
- prototype: DOMStringList;
1399
- new(): DOMStringList;
1400
- }
1401
-
1402
- interface IDBOpenDBRequest extends IDBRequest {
1403
- onupgradeneeded: (ev: IDBVersionChangeEvent) => any;
1404
- onblocked: (ev: Event) => any;
1405
- addEventListener(type: "success", listener: (ev: Event) => any, useCapture?: boolean): void;
1406
- addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
1407
- addEventListener(type: "upgradeneeded", listener: (ev: IDBVersionChangeEvent) => any, useCapture?: boolean): void;
1408
- addEventListener(type: "blocked", listener: (ev: Event) => any, useCapture?: boolean): void;
1409
- addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
1410
- }
1411
- declare var IDBOpenDBRequest: {
1412
- prototype: IDBOpenDBRequest;
1413
- new(): IDBOpenDBRequest;
1414
- }
1415
-
1416
- interface MSUnsafeFunctionCallback {
1417
- (): any;
1418
- }
1419
-
1420
- interface IDBRequest extends EventTarget {
1421
- source: any;
1422
- onsuccess: (ev: Event) => any;
1423
- error: DOMError;
1424
- transaction: IDBTransaction;
1425
- onerror: (ev: ErrorEvent) => any;
1426
- readyState: string;
1427
- result: any;
1428
- addEventListener(type: "success", listener: (ev: Event) => any, useCapture?: boolean): void;
1429
- addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
1430
- addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
1431
- }
1432
- declare var IDBRequest: {
1433
- prototype: IDBRequest;
1434
- new(): IDBRequest;
1435
- }
1436
-
1437
- interface MessagePort extends EventTarget {
1438
- onmessage: (ev: MessageEvent) => any;
1439
- close(): void;
1440
- postMessage(message?: any, ports?: any): void;
1441
- start(): void;
1442
- addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
1443
- addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
1444
- }
1445
- declare var MessagePort: {
1446
- prototype: MessagePort;
1447
- new(): MessagePort;
1448
- }
1449
-
1450
- interface FileReader extends MSBaseReader {
1451
- error: DOMError;
1452
- readAsArrayBuffer(blob: Blob): void;
1453
- readAsDataURL(blob: Blob): void;
1454
- readAsText(blob: Blob, encoding?: string): void;
1455
- }
1456
- declare var FileReader: {
1457
- prototype: FileReader;
1458
- new(): FileReader;
1459
- }
1460
-
1461
- interface BlobPropertyBag {
1462
- type?: string;
1463
- endings?: string;
1464
- }
1465
-
1466
- interface Blob {
1467
- type: string;
1468
- size: number;
1469
- msDetachStream(): any;
1470
- slice(start?: number, end?: number, contentType?: string): Blob;
1471
- msClose(): void;
1472
- }
1473
- declare var Blob: {
1474
- prototype: Blob;
1475
- new (blobParts?: any[], options?: BlobPropertyBag): Blob;
1476
- }
1477
-
1478
- interface MSStream {
1479
- type: string;
1480
- msDetachStream(): any;
1481
- msClose(): void;
1482
- }
1483
- declare var MSStream: {
1484
- prototype: MSStream;
1485
- new(): MSStream;
1486
- }
1487
-
1488
- interface MSBlobBuilder {
1489
- append(data: any, endings?: string): void;
1490
- getBlob(contentType?: string): Blob;
1491
- }
1492
- declare var MSBlobBuilder: {
1493
- prototype: MSBlobBuilder;
1494
- new(): MSBlobBuilder;
1495
- }
1496
-
1497
- interface IDBFactory {
1498
- open(name: string, version?: number): IDBOpenDBRequest;
1499
- cmp(first: any, second: any): number;
1500
- deleteDatabase(name: string): IDBOpenDBRequest;
1501
- }
1502
- declare var IDBFactory: {
1503
- prototype: IDBFactory;
1504
- new(): IDBFactory;
1505
- }
1506
-
1507
- interface AbstractWorker extends EventTarget {
1508
- onerror: (ev: ErrorEvent) => any;
1509
- addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
1510
- addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
1511
- }
1512
-
1513
- interface MSApp {
1514
- createFileFromStorageFile(storageFile: any): File;
1515
- createBlobFromRandomAccessStream(type: string, seeker: any): Blob;
1516
- createStreamFromInputStream(type: string, inputStream: any): MSStream;
1517
- terminateApp(exceptionObject: any): void;
1518
- createDataPackage(object: any): any;
1519
- execUnsafeLocalFunction(unsafeFunction: MSUnsafeFunctionCallback): any;
1520
- getHtmlPrintDocumentSource(htmlDoc: any): any;
1521
- addPublicLocalApplicationUri(uri: string): void;
1522
- createDataPackageFromSelection(): any;
1523
- getViewOpener(): MSAppView;
1524
- suppressSubdownloadCredentialPrompts(suppress: boolean): void;
1525
- execAsyncAtPriority(asynchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void;
1526
- isTaskScheduledAtPriorityOrHigher(priority: string): boolean;
1527
- execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): any;
1528
- createNewView(uri: string): MSAppView;
1529
- getCurrentPriority(): string;
1530
- NORMAL: string;
1531
- HIGH: string;
1532
- IDLE: string;
1533
- CURRENT: string;
1534
- }
1535
- declare var MSApp: MSApp;
1536
-
1537
- interface Worker extends AbstractWorker {
1538
- onmessage: (ev: MessageEvent) => any;
1539
- postMessage(message: any, ports?: any): void;
1540
- terminate(): void;
1541
- addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
1542
- addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
1543
- addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
1544
- }
1545
- declare var Worker: {
1546
- prototype: Worker;
1547
- new(stringUrl: string): Worker;
1548
- }
1549
-
1550
- interface MSExecAtPriorityFunctionCallback {
1551
- (...args: any[]): any;
1552
- }
1553
-
1554
- interface MSAppView {
1555
- viewId: number;
1556
- close(): void;
1557
- postMessage(message: any, targetOrigin: string, ports?: any): void;
1558
- }
1559
- declare var MSAppView: {
1560
- prototype: MSAppView;
1561
- new(): MSAppView;
1562
- }
1563
-
1564
- interface WorkerLocation {
1565
- hash: string;
1566
- protocol: string;
1567
- search: string;
1568
- href: string;
1569
- hostname: string;
1570
- port: string;
1571
- pathname: string;
1572
- host: string;
1573
- toString(): string;
1574
- }
1575
- declare var WorkerLocation: {
1576
- prototype: WorkerLocation;
1577
- new(): WorkerLocation;
1578
- }
1579
-
1580
- interface FileReaderSync {
1581
- readAsArrayBuffer(blob: Blob): any;
1582
- readAsDataURL(blob: Blob): string;
1583
- readAsText(blob: Blob, encoding?: string): string;
1584
- }
1585
- declare var FileReaderSync: {
1586
- prototype: FileReaderSync;
1587
- new(): FileReaderSync;
1588
- }
1589
-
1590
- interface WorkerGlobalScope extends EventTarget, DedicatedWorkerGlobalScope, WindowConsole, WorkerUtils {
1591
- location: WorkerLocation;
1592
- self: WorkerGlobalScope;
1593
- onerror: (ev: ErrorEvent) => any;
1594
- msWriteProfilerMark(profilerMarkName: string): void;
1595
- close(): void;
1596
- toString(): string;
1597
- }
1598
- declare var WorkerGlobalScope: {
1599
- prototype: WorkerGlobalScope;
1600
- new(): WorkerGlobalScope;
1601
- }
1602
-
1603
- interface DedicatedWorkerGlobalScope {
1604
- onmessage: (ev: MessageEvent) => any;
1605
- postMessage(data: any): void;
1606
- }
1607
-
1608
- interface WorkerNavigator extends NavigatorID, NavigatorOnLine {
1609
- }
1610
- declare var WorkerNavigator: {
1611
- prototype: WorkerNavigator;
1612
- new(): WorkerNavigator;
1613
- }
1614
-
1615
- interface WorkerUtils extends WindowBase64 {
1616
- navigator: WorkerNavigator;
1617
- msIndexedDB: IDBFactory;
1618
- indexedDB: IDBFactory;
1619
- clearImmediate(handle: number): void;
1620
- importScripts(...urls: string[]): void;
1621
- clearTimeout(handle: number): void;
1622
- setImmediate(handler: any, ...args: any[]): number;
1623
- setTimeout(handler: any, timeout?: any, ...args: any[]): number;
1624
- clearInterval(handle: number): void;
1625
- setInterval(handler: any, timeout?: any, ...args: any[]): number;
1626
- }
1627
-
1628
-
1629
- declare var location: WorkerLocation;
1630
- declare var self: WorkerGlobalScope;
1631
- declare var onerror: (ev: ErrorEvent) => any;
1632
- declare function msWriteProfilerMark(profilerMarkName: string): void;
1633
- declare function close(): void;
1634
- declare function toString(): string;
1635
- declare function removeEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
1636
- declare function addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
1637
- declare function dispatchEvent(evt: Event): boolean;
1638
- declare var onmessage: (ev: MessageEvent) => any;
1639
- declare function postMessage(data: any): void;
1640
- declare var console: Console;
1641
- declare var navigator: WorkerNavigator;
1642
- declare var msIndexedDB: IDBFactory;
1643
- declare var indexedDB: IDBFactory;
1644
- declare function clearImmediate(handle: number): void;
1645
- declare function importScripts(...urls: string[]): void;
1646
- declare function clearTimeout(handle: number): void;
1647
- declare function setImmediate(handler: any, ...args: any[]): number;
1648
- declare function setTimeout(handler: any, timeout?: any, ...args: any[]): number;
1649
- declare function clearInterval(handle: number): void;
1650
- declare function setInterval(handler: any, timeout?: any, ...args: any[]): number;
1651
- declare function btoa(rawString: string): string;
1652
- declare function atob(encodedString: string): string;