@@ -7,7 +7,7 @@ interface Symbol {
77 /** Returns the primitive value of the specified object. */
88 valueOf ( ) : Object ;
99
10- [ Symbol . toStringTag ] : string ;
10+ [ Symbol . toStringTag ] : "Symbol" ;
1111}
1212
1313interface SymbolConstructor {
@@ -565,7 +565,7 @@ interface IterableIterator<T> extends Iterator<T> {
565565}
566566
567567interface GeneratorFunction extends Function {
568-
568+ [ Symbol . toStringTag ] : "GeneratorFunction" ;
569569}
570570
571571interface GeneratorFunctionConstructor {
@@ -690,7 +690,7 @@ interface Math {
690690 */
691691 cbrt ( x : number ) : number ;
692692
693- [ Symbol . toStringTag ] : string ;
693+ [ Symbol . toStringTag ] : "Math" ;
694694}
695695
696696interface Date {
@@ -807,7 +807,7 @@ interface Map<K, V> {
807807 size : number ;
808808 values ( ) : IterableIterator < V > ;
809809 [ Symbol . iterator ] ( ) :IterableIterator < [ K , V ] > ;
810- [ Symbol . toStringTag ] : string ;
810+ [ Symbol . toStringTag ] : "Map" ;
811811}
812812
813813interface MapConstructor {
@@ -824,7 +824,7 @@ interface WeakMap<K, V> {
824824 get ( key : K ) : V ;
825825 has ( key : K ) : boolean ;
826826 set ( key : K , value ?: V ) : WeakMap < K , V > ;
827- [ Symbol . toStringTag ] : string ;
827+ [ Symbol . toStringTag ] : "WeakMap" ;
828828}
829829
830830interface WeakMapConstructor {
@@ -846,7 +846,7 @@ interface Set<T> {
846846 size : number ;
847847 values ( ) : IterableIterator < T > ;
848848 [ Symbol . iterator ] ( ) :IterableIterator < T > ;
849- [ Symbol . toStringTag ] : string ;
849+ [ Symbol . toStringTag ] : "Set" ;
850850}
851851
852852interface SetConstructor {
@@ -862,7 +862,7 @@ interface WeakSet<T> {
862862 clear ( ) : void ;
863863 delete ( value : T ) : boolean ;
864864 has ( value : T ) : boolean ;
865- [ Symbol . toStringTag ] : string ;
865+ [ Symbol . toStringTag ] : "WeakSet" ;
866866}
867867
868868interface WeakSetConstructor {
@@ -874,7 +874,7 @@ interface WeakSetConstructor {
874874declare var WeakSet : WeakSetConstructor ;
875875
876876interface JSON {
877- [ Symbol . toStringTag ] : string ;
877+ [ Symbol . toStringTag ] : "JSON" ;
878878}
879879
880880/**
@@ -884,11 +884,11 @@ interface JSON {
884884 * buffer as needed.
885885 */
886886interface ArrayBuffer {
887- [ Symbol . toStringTag ] : string ;
887+ [ Symbol . toStringTag ] : "ArrayBuffer" ;
888888}
889889
890890interface DataView {
891- [ Symbol . toStringTag ] : string ;
891+ [ Symbol . toStringTag ] : "DataView" ;
892892}
893893
894894/**
@@ -909,6 +909,7 @@ interface Int8Array {
909909 */
910910 values ( ) : IterableIterator < number > ;
911911 [ Symbol . iterator ] ( ) : IterableIterator < number > ;
912+ [ Symbol . toStringTag ] : "Int8Array" ;
912913}
913914
914915interface Int8ArrayConstructor {
@@ -941,6 +942,7 @@ interface Uint8Array {
941942 */
942943 values ( ) : IterableIterator < number > ;
943944 [ Symbol . iterator ] ( ) : IterableIterator < number > ;
945+ [ Symbol . toStringTag ] : "UInt8Array" ;
944946}
945947
946948interface Uint8ArrayConstructor {
@@ -976,6 +978,7 @@ interface Uint8ClampedArray {
976978 values ( ) : IterableIterator < number > ;
977979
978980 [ Symbol . iterator ] ( ) : IterableIterator < number > ;
981+ [ Symbol . toStringTag ] : "Uint8ClampedArray" ;
979982}
980983
981984interface Uint8ClampedArrayConstructor {
@@ -1013,6 +1016,7 @@ interface Int16Array {
10131016
10141017
10151018 [ Symbol . iterator ] ( ) : IterableIterator < number > ;
1019+ [ Symbol . toStringTag ] : "Int16Array" ;
10161020}
10171021
10181022interface Int16ArrayConstructor {
@@ -1045,6 +1049,7 @@ interface Uint16Array {
10451049 */
10461050 values ( ) : IterableIterator < number > ;
10471051 [ Symbol . iterator ] ( ) : IterableIterator < number > ;
1052+ [ Symbol . toStringTag ] : "Uint16Array" ;
10481053}
10491054
10501055interface Uint16ArrayConstructor {
@@ -1077,6 +1082,7 @@ interface Int32Array {
10771082 */
10781083 values ( ) : IterableIterator < number > ;
10791084 [ Symbol . iterator ] ( ) : IterableIterator < number > ;
1085+ [ Symbol . toStringTag ] : "Int32Array" ;
10801086}
10811087
10821088interface Int32ArrayConstructor {
@@ -1109,6 +1115,7 @@ interface Uint32Array {
11091115 */
11101116 values ( ) : IterableIterator < number > ;
11111117 [ Symbol . iterator ] ( ) : IterableIterator < number > ;
1118+ [ Symbol . toStringTag ] : "Uint32Array" ;
11121119}
11131120
11141121interface Uint32ArrayConstructor {
@@ -1141,6 +1148,7 @@ interface Float32Array {
11411148 */
11421149 values ( ) : IterableIterator < number > ;
11431150 [ Symbol . iterator ] ( ) : IterableIterator < number > ;
1151+ [ Symbol . toStringTag ] : "Float32Array" ;
11441152}
11451153
11461154interface Float32ArrayConstructor {
@@ -1173,6 +1181,7 @@ interface Float64Array {
11731181 */
11741182 values ( ) : IterableIterator < number > ;
11751183 [ Symbol . iterator ] ( ) : IterableIterator < number > ;
1184+ [ Symbol . toStringTag ] : "Float64Array" ;
11761185}
11771186
11781187interface Float64ArrayConstructor {
@@ -1249,7 +1258,7 @@ interface Promise<T> {
12491258 catch ( onrejected ?: ( reason : any ) => T | PromiseLike < T > ) : Promise < T > ;
12501259 catch ( onrejected ?: ( reason : any ) => void ) : Promise < T > ;
12511260
1252- [ Symbol . toStringTag ] : string ;
1261+ [ Symbol . toStringTag ] : "Promise" ;
12531262}
12541263
12551264interface PromiseConstructor {
0 commit comments