mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 01:43:59 -05:00
Move PropertyKey from es5 to es2015.core
* Move propertyKey definition to es2015.core * Update baselines to reflect how one will use --lib
This commit is contained in:
2
src/lib/es2015.core.d.ts
vendored
2
src/lib/es2015.core.d.ts
vendored
@@ -1,3 +1,5 @@
|
||||
declare type PropertyKey = string | number | symbol;
|
||||
|
||||
interface Array<T> {
|
||||
/**
|
||||
* Returns the value of the first element in the array where predicate is true, and undefined
|
||||
|
||||
2
src/lib/es5.d.ts
vendored
2
src/lib/es5.d.ts
vendored
@@ -1247,8 +1247,6 @@ interface TypedPropertyDescriptor<T> {
|
||||
set?: (value: T) => void;
|
||||
}
|
||||
|
||||
declare type PropertyKey = string | number | symbol;
|
||||
|
||||
declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
|
||||
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
|
||||
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// @lib: es5,es2015.symbol,es2015.proxy,es2015.generator,es2015.iterable,es2015.reflect
|
||||
// @lib: es5,es2015.core,es2015.symbol,es2015.proxy,es2015.generator,es2015.iterable,es2015.reflect
|
||||
// @target: es6
|
||||
|
||||
var s = Symbol();
|
||||
|
||||
Reference in New Issue
Block a user