mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 10:58:20 -05:00
Separate ES6 library feature-by-feature into smaller files Break ES6 library Remove unused ES6 Rename core to es5 Update building library files in JakeFile separate symbol into its own file separate well-known symbol into its own file remove iterable and symbol component from es6.string.d.ts remove iterable and symbol components from es6.collection.d.ts remove symbol components from es6.math.d.ts remove iterable and symbol components from es6.object.d.ts remove iterable and symbol components from es6.promise.d.ts remove iterable and symbol component from es6.reflect.d.ts remove iterable and symbol components from es6.proxy.d.ts split regexp into its own file remove unused file rename es7 array-include d.ts file Include new lib files into compilation Move symbol.iterable to symbol.wellknown Move functions/methods that use propertyKey back to its original interface Rename dome.es6 to dom.iterable Take dependency on dom.generated.d.ts Rename importcore.d.ts to importes5.d.ts Add es6.d.ts and es7.d.ts that contain /// references to their associated sub-features files Update library compilation Fix harness broken from renaming generated library files Remove intl.d.ts Remove preset lib files Use lib.full.es6.d.ts instead of lib.es6.d.ts Add intl.d.ts to es5.d.ts Remove unused RegexpConstructor interface Separate generator into its own file Update Jakefile Remove iterable-iterator dependence Use lower case for lib filename Include no-default comment Remove newline on top of the file
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
interface Symbol {
|
|
/** Returns a string representation of an object. */
|
|
toString(): string;
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
valueOf(): Object;
|
|
}
|
|
|
|
interface SymbolConstructor {
|
|
/**
|
|
* A reference to the prototype.
|
|
*/
|
|
readonly prototype: Symbol;
|
|
|
|
/**
|
|
* Returns a new unique Symbol value.
|
|
* @param description Description of the new Symbol object.
|
|
*/
|
|
(description?: string|number): symbol;
|
|
|
|
/**
|
|
* Returns a Symbol object from the global symbol registry matching the given key if found.
|
|
* Otherwise, returns a new symbol with this key.
|
|
* @param key key to search for.
|
|
*/
|
|
for(key: string): symbol;
|
|
|
|
/**
|
|
* Returns a key from the global symbol registry matching the given Symbol if found.
|
|
* Otherwise, returns a undefined.
|
|
* @param sym Symbol to find the key for.
|
|
*/
|
|
keyFor(sym: symbol): string;
|
|
}
|
|
|
|
declare var Symbol: SymbolConstructor; |