UNPKG

1.24 kBTypeScriptView Raw
1export function create(): {
2 [x: string]: any;
3};
4/**
5 * Object.assign
6 */
7export const assign: {
8 <T extends {}, U>(target: T, source: U): T & U;
9 <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
10 <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
11 (target: object, ...sources: any[]): any;
12};
13/**
14 * @param {Object<string,any>} obj
15 */
16export const keys: {
17 (o: object): string[];
18 (o: {}): string[];
19};
20export function forEach<V>(obj: {
21 [k: string]: V;
22}, f: (arg0: V, arg1: string) => any): void;
23export function map<R>(obj: {
24 [x: string]: any;
25}, f: (arg0: any, arg1: string) => R): R[];
26export function length(obj: {
27 [x: string]: any;
28}): number;
29export function some(obj: {
30 [x: string]: any;
31}, f: (arg0: any, arg1: string) => boolean): boolean;
32export function isEmpty(obj: Object | undefined): boolean;
33export function every(obj: {
34 [x: string]: any;
35}, f: (arg0: any, arg1: string) => boolean): boolean;
36export function hasProperty(obj: any, key: string | symbol): boolean;
37export function equalFlat(a: {
38 [x: string]: any;
39}, b: {
40 [x: string]: any;
41}): boolean;
42//# sourceMappingURL=object.d.ts.map
\No newline at end of file