mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 20:14:01 -06:00
32 lines
1.6 KiB
TypeScript
32 lines
1.6 KiB
TypeScript
interface ObjectConstructor {
|
|
/**
|
|
* Returns an array of values of the enumerable properties of an object
|
|
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
*/
|
|
values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];
|
|
|
|
/**
|
|
* Returns an array of values of the enumerable properties of an object
|
|
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
*/
|
|
values(o: {}): any[];
|
|
|
|
/**
|
|
* Returns an array of key/values of the enumerable properties of an object
|
|
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
*/
|
|
entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][];
|
|
|
|
/**
|
|
* Returns an array of key/values of the enumerable properties of an object
|
|
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
*/
|
|
entries(o: {}): [string, any][];
|
|
|
|
/**
|
|
* Returns an object containing all own property descriptors of an object
|
|
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
*/
|
|
getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor };
|
|
}
|