Skip to content

Commit 988063e

Browse files
committed
Move PropertyKey from es5 to es2015.core
* Move propertyKey definition to es2015.core * Update baselines to reflect how one will use --lib
1 parent 11887cc commit 988063e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib/es2015.core.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
declare type PropertyKey = string | number | symbol;
2+
13
interface Array<T> {
24
/**
35
* Returns the value of the first element in the array where predicate is true, and undefined

src/lib/es5.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,8 +1247,6 @@ interface TypedPropertyDescriptor<T> {
12471247
set?: (value: T) => void;
12481248
}
12491249

1250-
declare type PropertyKey = string | number | symbol;
1251-
12521250
declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
12531251
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
12541252
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;

tests/cases/compiler/modularizeLibrary_UsingES5LibAndES6FeatureLibs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// @lib: es5,es2015.symbol,es2015.proxy,es2015.generator,es2015.iterable,es2015.reflect
1+
// @lib: es5,es2015.core,es2015.symbol,es2015.proxy,es2015.generator,es2015.iterable,es2015.reflect
22
// @target: es6
33

44
var s = Symbol();

0 commit comments

Comments
 (0)