@@ -22,8 +22,8 @@ and limitations under the License.
22
22
/// ECMAScript APIs
23
23
/////////////////////////////
24
24
25
- declare const NaN : number ;
26
- declare const Infinity : number ;
25
+ declare var NaN : number ;
26
+ declare var Infinity : number ;
27
27
28
28
/**
29
29
* Evaluates JavaScript code and executes it.
@@ -264,7 +264,7 @@ interface ObjectConstructor {
264
264
/**
265
265
* Provides functionality common to all JavaScript objects.
266
266
*/
267
- declare const Object : ObjectConstructor ;
267
+ declare var Object : ObjectConstructor ;
268
268
269
269
/**
270
270
* Creates a new function.
@@ -313,7 +313,7 @@ interface FunctionConstructor {
313
313
readonly prototype : Function ;
314
314
}
315
315
316
- declare const Function : FunctionConstructor ;
316
+ declare var Function : FunctionConstructor ;
317
317
318
318
/**
319
319
* Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
@@ -524,7 +524,7 @@ interface StringConstructor {
524
524
/**
525
525
* Allows manipulation and formatting of text strings and determination and location of substrings within strings.
526
526
*/
527
- declare const String : StringConstructor ;
527
+ declare var String : StringConstructor ;
528
528
529
529
interface Boolean {
530
530
/** Returns the primitive value of the specified object. */
@@ -537,7 +537,7 @@ interface BooleanConstructor {
537
537
readonly prototype : Boolean ;
538
538
}
539
539
540
- declare const Boolean : BooleanConstructor ;
540
+ declare var Boolean : BooleanConstructor ;
541
541
542
542
interface Number {
543
543
/**
@@ -599,7 +599,7 @@ interface NumberConstructor {
599
599
}
600
600
601
601
/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
602
- declare const Number : NumberConstructor ;
602
+ declare var Number : NumberConstructor ;
603
603
604
604
interface TemplateStringsArray extends ReadonlyArray < string > {
605
605
readonly raw : ReadonlyArray < string > ;
@@ -723,7 +723,7 @@ interface Math {
723
723
tan ( x : number ) : number ;
724
724
}
725
725
/** An intrinsic object that provides basic mathematics functionality and constants. */
726
- declare const Math : Math ;
726
+ declare var Math : Math ;
727
727
728
728
/** Enables basic storage and retrieval of dates and times. */
729
729
interface Date {
@@ -904,7 +904,7 @@ interface DateConstructor {
904
904
now ( ) : number ;
905
905
}
906
906
907
- declare const Date : DateConstructor ;
907
+ declare var Date : DateConstructor ;
908
908
909
909
interface RegExpMatchArray extends Array < string > {
910
910
index ?: number ;
@@ -967,7 +967,7 @@ interface RegExpConstructor {
967
967
lastMatch : string ;
968
968
}
969
969
970
- declare const RegExp : RegExpConstructor ;
970
+ declare var RegExp : RegExpConstructor ;
971
971
972
972
interface Error {
973
973
name : string ;
@@ -981,7 +981,7 @@ interface ErrorConstructor {
981
981
readonly prototype : Error ;
982
982
}
983
983
984
- declare const Error : ErrorConstructor ;
984
+ declare var Error : ErrorConstructor ;
985
985
986
986
interface EvalError extends Error {
987
987
}
@@ -992,7 +992,7 @@ interface EvalErrorConstructor {
992
992
readonly prototype : EvalError ;
993
993
}
994
994
995
- declare const EvalError : EvalErrorConstructor ;
995
+ declare var EvalError : EvalErrorConstructor ;
996
996
997
997
interface RangeError extends Error {
998
998
}
@@ -1003,7 +1003,7 @@ interface RangeErrorConstructor {
1003
1003
readonly prototype : RangeError ;
1004
1004
}
1005
1005
1006
- declare const RangeError : RangeErrorConstructor ;
1006
+ declare var RangeError : RangeErrorConstructor ;
1007
1007
1008
1008
interface ReferenceError extends Error {
1009
1009
}
@@ -1014,7 +1014,7 @@ interface ReferenceErrorConstructor {
1014
1014
readonly prototype : ReferenceError ;
1015
1015
}
1016
1016
1017
- declare const ReferenceError : ReferenceErrorConstructor ;
1017
+ declare var ReferenceError : ReferenceErrorConstructor ;
1018
1018
1019
1019
interface SyntaxError extends Error {
1020
1020
}
@@ -1025,7 +1025,7 @@ interface SyntaxErrorConstructor {
1025
1025
readonly prototype : SyntaxError ;
1026
1026
}
1027
1027
1028
- declare const SyntaxError : SyntaxErrorConstructor ;
1028
+ declare var SyntaxError : SyntaxErrorConstructor ;
1029
1029
1030
1030
interface TypeError extends Error {
1031
1031
}
@@ -1036,7 +1036,7 @@ interface TypeErrorConstructor {
1036
1036
readonly prototype : TypeError ;
1037
1037
}
1038
1038
1039
- declare const TypeError : TypeErrorConstructor ;
1039
+ declare var TypeError : TypeErrorConstructor ;
1040
1040
1041
1041
interface URIError extends Error {
1042
1042
}
@@ -1047,7 +1047,7 @@ interface URIErrorConstructor {
1047
1047
readonly prototype : URIError ;
1048
1048
}
1049
1049
1050
- declare const URIError : URIErrorConstructor ;
1050
+ declare var URIError : URIErrorConstructor ;
1051
1051
1052
1052
interface JSON {
1053
1053
/**
@@ -1076,7 +1076,7 @@ interface JSON {
1076
1076
/**
1077
1077
* An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
1078
1078
*/
1079
- declare const JSON : JSON ;
1079
+ declare var JSON : JSON ;
1080
1080
1081
1081
1082
1082
/////////////////////////////
@@ -1365,7 +1365,7 @@ interface ArrayConstructor {
1365
1365
readonly prototype : Array < any > ;
1366
1366
}
1367
1367
1368
- declare const Array : ArrayConstructor ;
1368
+ declare var Array : ArrayConstructor ;
1369
1369
1370
1370
interface TypedPropertyDescriptor < T > {
1371
1371
enumerable ?: boolean ;
@@ -1524,7 +1524,7 @@ interface ArrayBufferConstructor {
1524
1524
new ( byteLength : number ) : ArrayBuffer ;
1525
1525
isView ( arg : any ) : arg is ArrayBufferView ;
1526
1526
}
1527
- declare const ArrayBuffer : ArrayBufferConstructor ;
1527
+ declare var ArrayBuffer : ArrayBufferConstructor ;
1528
1528
1529
1529
interface ArrayBufferView {
1530
1530
/**
@@ -1674,7 +1674,7 @@ interface DataView {
1674
1674
interface DataViewConstructor {
1675
1675
new ( buffer : ArrayBufferLike , byteOffset ?: number , byteLength ?: number ) : DataView ;
1676
1676
}
1677
- declare const DataView : DataViewConstructor ;
1677
+ declare var DataView : DataViewConstructor ;
1678
1678
1679
1679
/**
1680
1680
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
@@ -1949,7 +1949,7 @@ interface Int8ArrayConstructor {
1949
1949
1950
1950
1951
1951
}
1952
- declare const Int8Array : Int8ArrayConstructor ;
1952
+ declare var Int8Array : Int8ArrayConstructor ;
1953
1953
1954
1954
/**
1955
1955
* A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
@@ -2224,7 +2224,7 @@ interface Uint8ArrayConstructor {
2224
2224
from < T > ( arrayLike : ArrayLike < T > , mapfn : ( v : T , k : number ) => number , thisArg ?: any ) : Uint8Array ;
2225
2225
2226
2226
}
2227
- declare const Uint8Array : Uint8ArrayConstructor ;
2227
+ declare var Uint8Array : Uint8ArrayConstructor ;
2228
2228
2229
2229
/**
2230
2230
* A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
@@ -2498,7 +2498,7 @@ interface Uint8ClampedArrayConstructor {
2498
2498
*/
2499
2499
from < T > ( arrayLike : ArrayLike < T > , mapfn : ( v : T , k : number ) => number , thisArg ?: any ) : Uint8ClampedArray ;
2500
2500
}
2501
- declare const Uint8ClampedArray : Uint8ClampedArrayConstructor ;
2501
+ declare var Uint8ClampedArray : Uint8ClampedArrayConstructor ;
2502
2502
2503
2503
/**
2504
2504
* A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
@@ -2773,7 +2773,7 @@ interface Int16ArrayConstructor {
2773
2773
2774
2774
2775
2775
}
2776
- declare const Int16Array : Int16ArrayConstructor ;
2776
+ declare var Int16Array : Int16ArrayConstructor ;
2777
2777
2778
2778
/**
2779
2779
* A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
@@ -3049,7 +3049,7 @@ interface Uint16ArrayConstructor {
3049
3049
3050
3050
3051
3051
}
3052
- declare const Uint16Array : Uint16ArrayConstructor ;
3052
+ declare var Uint16Array : Uint16ArrayConstructor ;
3053
3053
/**
3054
3054
* A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
3055
3055
* requested number of bytes could not be allocated an exception is raised.
@@ -3323,7 +3323,7 @@ interface Int32ArrayConstructor {
3323
3323
from < T > ( arrayLike : ArrayLike < T > , mapfn : ( v : T , k : number ) => number , thisArg ?: any ) : Int32Array ;
3324
3324
3325
3325
}
3326
- declare const Int32Array : Int32ArrayConstructor ;
3326
+ declare var Int32Array : Int32ArrayConstructor ;
3327
3327
3328
3328
/**
3329
3329
* A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
@@ -3597,7 +3597,7 @@ interface Uint32ArrayConstructor {
3597
3597
from < T > ( arrayLike : ArrayLike < T > , mapfn : ( v : T , k : number ) => number , thisArg ?: any ) : Uint32Array ;
3598
3598
3599
3599
}
3600
- declare const Uint32Array : Uint32ArrayConstructor ;
3600
+ declare var Uint32Array : Uint32ArrayConstructor ;
3601
3601
3602
3602
/**
3603
3603
* A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
@@ -3873,7 +3873,7 @@ interface Float32ArrayConstructor {
3873
3873
3874
3874
3875
3875
}
3876
- declare const Float32Array : Float32ArrayConstructor ;
3876
+ declare var Float32Array : Float32ArrayConstructor ;
3877
3877
3878
3878
/**
3879
3879
* A typed array of 64-bit float values. The contents are initialized to 0. If the requested
@@ -4148,7 +4148,7 @@ interface Float64ArrayConstructor {
4148
4148
from < T > ( arrayLike : ArrayLike < T > , mapfn : ( v : T , k : number ) => number , thisArg ?: any ) : Float64Array ;
4149
4149
4150
4150
}
4151
- declare const Float64Array : Float64ArrayConstructor ;
4151
+ declare var Float64Array : Float64ArrayConstructor ;
4152
4152
4153
4153
/////////////////////////////
4154
4154
/// ECMAScript Internationalization API
0 commit comments