Skip to content

Commit

Permalink
Add missing properties to stdlib (#38678)
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek committed Aug 19, 2020
1 parent c51aaca commit a0d457e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/es2015.symbol.wellknown.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ interface SymbolConstructor {
}

interface Symbol {
/**
* Converts a Symbol object to a symbol.
*/
[Symbol.toPrimitive](hint: string): symbol;

readonly [Symbol.toStringTag]: string;
}

Expand Down
1 change: 1 addition & 0 deletions src/lib/es5.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,7 @@ interface DataView {
}

interface DataViewConstructor {
readonly prototype: DataView;
new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;
}
declare var DataView: DataViewConstructor;
Expand Down

0 comments on commit a0d457e

Please sign in to comment.