Skip to content

Commit a0d457e

Browse files
authored
Add missing properties to stdlib (#38678)
1 parent c51aaca commit a0d457e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/lib/es2015.symbol.wellknown.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ interface SymbolConstructor {
6363
}
6464

6565
interface Symbol {
66+
/**
67+
* Converts a Symbol object to a symbol.
68+
*/
69+
[Symbol.toPrimitive](hint: string): symbol;
70+
6671
readonly [Symbol.toStringTag]: string;
6772
}
6873

src/lib/es5.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1692,6 +1692,7 @@ interface DataView {
16921692
}
16931693

16941694
interface DataViewConstructor {
1695+
readonly prototype: DataView;
16951696
new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;
16961697
}
16971698
declare var DataView: DataViewConstructor;

0 commit comments

Comments
 (0)