@@ -1164,7 +1164,7 @@ interface ArrayConstructor {
1164
1164
}
1165
1165
1166
1166
declare var Array : ArrayConstructor ;
1167
- declare type PropertyKey = string | number | Symbol ;
1167
+ declare type PropertyKey = string | number | symbol ;
1168
1168
1169
1169
interface Symbol {
1170
1170
/** Returns a string representation of an object. */
@@ -1173,7 +1173,7 @@ interface Symbol {
1173
1173
/** Returns the primitive value of the specified object. */
1174
1174
valueOf ( ) : Object ;
1175
1175
1176
- // [Symbol.toStringTag]: string;
1176
+ [ Symbol . toStringTag ] : string ;
1177
1177
}
1178
1178
1179
1179
interface SymbolConstructor {
@@ -1186,64 +1186,64 @@ interface SymbolConstructor {
1186
1186
* Returns a new unique Symbol value.
1187
1187
* @param description Description of the new Symbol object.
1188
1188
*/
1189
- ( description ?: string | number ) : Symbol ;
1189
+ ( description ?: string | number ) : symbol ;
1190
1190
1191
1191
/**
1192
1192
* Returns a Symbol object from the global symbol registry matching the given key if found.
1193
1193
* Otherwise, returns a new symbol with this key.
1194
1194
* @param key key to search for.
1195
1195
*/
1196
- for ( key : string ) : Symbol ;
1196
+ for ( key : string ) : symbol ;
1197
1197
1198
1198
/**
1199
1199
* Returns a key from the global symbol registry matching the given Symbol if found.
1200
1200
* Otherwise, returns a undefined.
1201
1201
* @param sym Symbol to find the key for.
1202
1202
*/
1203
- keyFor ( sym : Symbol ) : string ;
1203
+ keyFor ( sym : symbol ) : string ;
1204
1204
1205
1205
// Well-known Symbols
1206
1206
1207
1207
/**
1208
1208
* A method that determines if a constructor object recognizes an object as one of the
1209
1209
* constructor’s instances. Called by the semantics of the instanceof operator.
1210
1210
*/
1211
- hasInstance : Symbol ;
1211
+ hasInstance : symbol ;
1212
1212
1213
1213
/**
1214
1214
* A Boolean value that if true indicates that an object should flatten to its array elements
1215
1215
* by Array.prototype.concat.
1216
1216
*/
1217
- isConcatSpreadable : Symbol ;
1217
+ isConcatSpreadable : symbol ;
1218
1218
1219
1219
/**
1220
1220
* A Boolean value that if true indicates that an object may be used as a regular expression.
1221
1221
*/
1222
- isRegExp : Symbol ;
1222
+ isRegExp : symbol ;
1223
1223
1224
1224
/**
1225
1225
* A method that returns the default iterator for an object.Called by the semantics of the
1226
1226
* for-of statement.
1227
1227
*/
1228
- iterator : Symbol ;
1228
+ iterator : symbol ;
1229
1229
1230
1230
/**
1231
1231
* A method that converts an object to a corresponding primitive value.Called by the ToPrimitive
1232
1232
* abstract operation.
1233
1233
*/
1234
- toPrimitive : Symbol ;
1234
+ toPrimitive : symbol ;
1235
1235
1236
1236
/**
1237
1237
* A String value that is used in the creation of the default string description of an object.
1238
1238
* Called by the built- in method Object.prototype.toString.
1239
1239
*/
1240
- toStringTag : Symbol ;
1240
+ toStringTag : symbol ;
1241
1241
1242
1242
/**
1243
1243
* An Object whose own property names are property names that are excluded from the with
1244
1244
* environment bindings of the associated objects.
1245
1245
*/
1246
- unscopables : Symbol ;
1246
+ unscopables : symbol ;
1247
1247
}
1248
1248
declare var Symbol : SymbolConstructor ;
1249
1249
@@ -1274,7 +1274,7 @@ interface ObjectConstructor {
1274
1274
* Returns an array of all symbol properties found directly on object o.
1275
1275
* @param o Object to retrieve the symbols from.
1276
1276
*/
1277
- getOwnPropertySymbols ( o : any ) : Symbol [ ] ;
1277
+ getOwnPropertySymbols ( o : any ) : symbol [ ] ;
1278
1278
1279
1279
/**
1280
1280
* Returns true if the values are the same value, false otherwise.
@@ -1396,7 +1396,7 @@ interface ArrayLike<T> {
1396
1396
1397
1397
interface Array < T > {
1398
1398
/** Iterator */
1399
- // [Symbol.iterator] (): Iterator<T>;
1399
+ [ Symbol . iterator ] ( ) : Iterator < T > ;
1400
1400
1401
1401
/**
1402
1402
* Returns an array of key, value pairs for every entry in the array
@@ -1495,7 +1495,7 @@ interface ArrayConstructor {
1495
1495
1496
1496
interface String {
1497
1497
/** Iterator */
1498
- // [Symbol.iterator] (): Iterator<string>;
1498
+ [ Symbol . iterator ] ( ) : Iterator < string > ;
1499
1499
1500
1500
/**
1501
1501
* Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
@@ -1613,12 +1613,12 @@ interface IteratorResult<T> {
1613
1613
}
1614
1614
1615
1615
interface Iterator < T > {
1616
- // [Symbol.iterator](): Iterator<T>;
1616
+ [ Symbol . iterator ] ( ) : Iterator < T > ;
1617
1617
next ( ) : IteratorResult < T > ;
1618
1618
}
1619
1619
1620
1620
interface Iterable < T > {
1621
- // [Symbol.iterator](): Iterator<T>;
1621
+ [ Symbol . iterator ] ( ) : Iterator < T > ;
1622
1622
}
1623
1623
1624
1624
interface GeneratorFunction extends Function {
@@ -1640,7 +1640,7 @@ interface Generator<T> extends Iterator<T> {
1640
1640
next ( value ?: any ) : IteratorResult < T > ;
1641
1641
throw ( exception : any ) : IteratorResult < T > ;
1642
1642
return ( value : T ) : IteratorResult < T > ;
1643
- // [Symbol.toStringTag]: string;
1643
+ [ Symbol . toStringTag ] : string ;
1644
1644
}
1645
1645
1646
1646
interface Math {
@@ -1754,11 +1754,11 @@ interface Math {
1754
1754
*/
1755
1755
cbrt ( x : number ) : number ;
1756
1756
1757
- // [Symbol.toStringTag]: string;
1757
+ [ Symbol . toStringTag ] : string ;
1758
1758
}
1759
1759
1760
1760
interface RegExp {
1761
- // [Symbol.isRegExp]: boolean;
1761
+ [ Symbol . isRegExp ] : boolean ;
1762
1762
1763
1763
/**
1764
1764
* Matches a string with a regular expression, and returns an array containing the results of
@@ -1815,8 +1815,8 @@ interface Map<K, V> {
1815
1815
set ( key : K , value ?: V ) : Map < K , V > ;
1816
1816
size : number ;
1817
1817
values ( ) : Iterator < V > ;
1818
- // [Symbol.iterator]():Iterator<[K,V]>;
1819
- // [Symbol.toStringTag]: string;
1818
+ [ Symbol . iterator ] ( ) :Iterator < [ K , V ] > ;
1819
+ [ Symbol . toStringTag ] : string ;
1820
1820
}
1821
1821
1822
1822
interface MapConstructor {
@@ -1832,7 +1832,7 @@ interface WeakMap<K, V> {
1832
1832
get ( key : K ) : V ;
1833
1833
has ( key : K ) : boolean ;
1834
1834
set ( key : K , value ?: V ) : WeakMap < K , V > ;
1835
- // [Symbol.toStringTag]: string;
1835
+ [ Symbol . toStringTag ] : string ;
1836
1836
}
1837
1837
1838
1838
interface WeakMapConstructor {
@@ -1852,8 +1852,8 @@ interface Set<T> {
1852
1852
keys ( ) : Iterator < T > ;
1853
1853
size : number ;
1854
1854
values ( ) : Iterator < T > ;
1855
- // [Symbol.iterator]():Iterator<T>;
1856
- // [Symbol.toStringTag]: string;
1855
+ [ Symbol . iterator ] ( ) :Iterator < T > ;
1856
+ [ Symbol . toStringTag ] : string ;
1857
1857
}
1858
1858
1859
1859
interface SetConstructor {
@@ -1868,7 +1868,7 @@ interface WeakSet<T> {
1868
1868
clear ( ) : void ;
1869
1869
delete ( value : T ) : boolean ;
1870
1870
has ( value : T ) : boolean ;
1871
- // [Symbol.toStringTag]: string;
1871
+ [ Symbol . toStringTag ] : string ;
1872
1872
}
1873
1873
1874
1874
interface WeakSetConstructor {
@@ -1879,7 +1879,7 @@ interface WeakSetConstructor {
1879
1879
declare var WeakSet : WeakSetConstructor ;
1880
1880
1881
1881
interface JSON {
1882
- // [Symbol.toStringTag]: string;
1882
+ [ Symbol . toStringTag ] : string ;
1883
1883
}
1884
1884
1885
1885
/**
@@ -1899,7 +1899,7 @@ interface ArrayBuffer {
1899
1899
*/
1900
1900
slice ( begin : number , end ?: number ) : ArrayBuffer ;
1901
1901
1902
- // [Symbol.toStringTag]: string;
1902
+ [ Symbol . toStringTag ] : string ;
1903
1903
}
1904
1904
1905
1905
interface ArrayBufferConstructor {
@@ -2036,7 +2036,7 @@ interface DataView {
2036
2036
*/
2037
2037
setUint32 ( byteOffset : number , value : number , littleEndian : boolean ) : void ;
2038
2038
2039
- // [Symbol.toStringTag]: string;
2039
+ [ Symbol . toStringTag ] : string ;
2040
2040
}
2041
2041
2042
2042
interface DataViewConstructor {
@@ -2303,7 +2303,7 @@ interface Int8Array {
2303
2303
values ( ) : Iterator < number > ;
2304
2304
2305
2305
[ index : number ] : number ;
2306
- // [Symbol.iterator] (): Iterator<number>;
2306
+ [ Symbol . iterator ] ( ) : Iterator < number > ;
2307
2307
}
2308
2308
2309
2309
interface Int8ArrayConstructor {
@@ -2593,7 +2593,7 @@ interface Uint8Array {
2593
2593
values ( ) : Iterator < number > ;
2594
2594
2595
2595
[ index : number ] : number ;
2596
- // [Symbol.iterator] (): Iterator<number>;
2596
+ [ Symbol . iterator ] ( ) : Iterator < number > ;
2597
2597
}
2598
2598
2599
2599
interface Uint8ArrayConstructor {
@@ -2883,7 +2883,7 @@ interface Uint8ClampedArray {
2883
2883
values ( ) : Iterator < number > ;
2884
2884
2885
2885
[ index : number ] : number ;
2886
- // [Symbol.iterator] (): Iterator<number>;
2886
+ [ Symbol . iterator ] ( ) : Iterator < number > ;
2887
2887
}
2888
2888
2889
2889
interface Uint8ClampedArrayConstructor {
@@ -3173,7 +3173,7 @@ interface Int16Array {
3173
3173
values ( ) : Iterator < number > ;
3174
3174
3175
3175
[ index : number ] : number ;
3176
- // [Symbol.iterator] (): Iterator<number>;
3176
+ [ Symbol . iterator ] ( ) : Iterator < number > ;
3177
3177
}
3178
3178
3179
3179
interface Int16ArrayConstructor {
@@ -3463,7 +3463,7 @@ interface Uint16Array {
3463
3463
values ( ) : Iterator < number > ;
3464
3464
3465
3465
[ index : number ] : number ;
3466
- // [Symbol.iterator] (): Iterator<number>;
3466
+ [ Symbol . iterator ] ( ) : Iterator < number > ;
3467
3467
}
3468
3468
3469
3469
interface Uint16ArrayConstructor {
@@ -3753,7 +3753,7 @@ interface Int32Array {
3753
3753
values ( ) : Iterator < number > ;
3754
3754
3755
3755
[ index : number ] : number ;
3756
- // [Symbol.iterator] (): Iterator<number>;
3756
+ [ Symbol . iterator ] ( ) : Iterator < number > ;
3757
3757
}
3758
3758
3759
3759
interface Int32ArrayConstructor {
@@ -4043,7 +4043,7 @@ interface Uint32Array {
4043
4043
values ( ) : Iterator < number > ;
4044
4044
4045
4045
[ index : number ] : number ;
4046
- // [Symbol.iterator] (): Iterator<number>;
4046
+ [ Symbol . iterator ] ( ) : Iterator < number > ;
4047
4047
}
4048
4048
4049
4049
interface Uint32ArrayConstructor {
@@ -4333,7 +4333,7 @@ interface Float32Array {
4333
4333
values ( ) : Iterator < number > ;
4334
4334
4335
4335
[ index : number ] : number ;
4336
- // [Symbol.iterator] (): Iterator<number>;
4336
+ [ Symbol . iterator ] ( ) : Iterator < number > ;
4337
4337
}
4338
4338
4339
4339
interface Float32ArrayConstructor {
@@ -4623,7 +4623,7 @@ interface Float64Array {
4623
4623
values ( ) : Iterator < number > ;
4624
4624
4625
4625
[ index : number ] : number ;
4626
- // [Symbol.iterator] (): Iterator<number>;
4626
+ [ Symbol . iterator ] ( ) : Iterator < number > ;
4627
4627
}
4628
4628
4629
4629
interface Float64ArrayConstructor {
@@ -4687,7 +4687,7 @@ declare var Reflect: {
4687
4687
getOwnPropertyDescriptor ( target : any , propertyKey : PropertyKey ) : PropertyDescriptor ;
4688
4688
getPrototypeOf ( target : any ) : any ;
4689
4689
has ( target : any , propertyKey : string ) : boolean ;
4690
- has ( target : any , propertyKey : Symbol ) : boolean ;
4690
+ has ( target : any , propertyKey : symbol ) : boolean ;
4691
4691
isExtensible ( target : any ) : boolean ;
4692
4692
ownKeys ( target : any ) : Array < PropertyKey > ;
4693
4693
preventExtensions ( target : any ) : boolean ;
0 commit comments