Add missing properties to stdlib (#38678)

This commit is contained in:
devsnek 2020-08-19 01:05:38 -05:00 committed by GitHub
parent c51aacac44
commit a0d457e14c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -63,6 +63,11 @@ interface SymbolConstructor {
}
interface Symbol {
/**
* Converts a Symbol object to a symbol.
*/
[Symbol.toPrimitive](hint: string): symbol;
readonly [Symbol.toStringTag]: string;
}

1
src/lib/es5.d.ts vendored
View file

@ -1692,6 +1692,7 @@ interface DataView {
}
interface DataViewConstructor {
readonly prototype: DataView;
new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;
}
declare var DataView: DataViewConstructor;