UNPKG

@tacky/store

Version:

State management framework based on react

16 lines (15 loc) 836 B
export declare function isObject(value: any): boolean; export declare function isDomain(value: any): boolean; export declare function isPlainObject(value: any): boolean; export declare function includes<T>(array: T[], item: T): boolean; export declare function isPrimitive(value: any): boolean; export declare function convert2UniqueString(key: string | symbol | number): string; export declare const deduplicate: (array: any[]) => any[]; /** * nextTick would flush promise micro task */ export declare function nextTick(fn?: () => void): Promise<void>; export declare const hasOwn: (val: object, key: string | number | symbol) => key is never; export declare function is(x: any, y: any): boolean; export declare function bind(fn: any, ctx: any): (a?: any) => any; export declare function shallowEqual(objA: any, objB: any): boolean;