UNPKG

752 BTypeScriptView Raw
1/** Get own enumerable property keys. */
2declare function EnumerableOwnProperties(O: object, kind: "key"): string[];
3
4/** Get own enumerable property values. */
5declare function EnumerableOwnProperties<T>(O: { [s: string]: T } | ArrayLike<T>, kind: "value"): T[];
6
7/** Get own enumerable property entries. */
8declare function EnumerableOwnProperties<T>(
9 O: { [s: string]: T } | ArrayLike<T>,
10 kind: "key+value",
11): Array<[string, T]>;
12
13/** Get own enumerable property entries. */
14declare function EnumerableOwnProperties(O: object, kind: "key+value"): Array<[string, any]>;
15
16/** Get own enumerable properties. */
17declare function EnumerableOwnProperties(O: object, kind: "key" | "value" | "key+value"): any[];
18
19export = EnumerableOwnProperties;