/
githubmirror
/
TypeScript
Обзор
Документация
Войти
/
githubmirror
/
TypeScript
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/lib/es2015.symbol.d.ts
28 строк
822 B
niteagent
Fix JSDoc grammar typo: 'returns a undefined' → 'returns undefined' (#63525)
06 июн 2026, 02:12
Не верифицирован
06 июн 2026, 02:12
7539c04
Код
Авторство
О чём код?
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 undefined. * @param sym Symbol to find the key for. */ keyFor(sym: symbol): string | undefined; } declare var Symbol: SymbolConstructor;