Fix symbol constructor and update Object properties

This commit is contained in:
Mohamed Hegazy
2014-11-14 10:14:00 -08:00
parent ded34ef3ae
commit 7d6f7ea8e9
+16 -1
View File
@@ -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