From 7d6f7ea8e9f88236d5d1a51bee6b14691964b333 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Fri, 14 Nov 2014 10:14:00 -0800 Subject: [PATCH] Fix symbol constructor and update Object properties --- src/lib/es6.d.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/lib/es6.d.ts b/src/lib/es6.d.ts index 32d3c00290f..873979ad80f 100644 --- a/src/lib/es6.d.ts +++ b/src/lib/es6.d.ts @@ -15,7 +15,7 @@ interface SymbolConstructor { * Returns a new unique Symbol value. * @param description Description of the new Symbol object. */ - new (description?: string): Symbol; + (description?: string|number): Symbol; /** * Returns a Symbol object from the global symbol registry matching the given key if found. @@ -77,6 +77,21 @@ interface SymbolConstructor { declare var Symbol: SymbolConstructor; + +interface Object { + /** + * Determines whether an object has a property with the specified name. + * @param v A property name. + */ + hasOwnProperty(v: PropertyKey): boolean; + + /** + * Determines whether a specified property is enumerable. + * @param v A property name. + */ + propertyIsEnumerable(v: PropertyKey): boolean; +} + interface ObjectConstructor { /** * Copy the values of all of the enumerable own properties from one or more source objects to a