-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.d.ts
More file actions
18 lines (18 loc) · 1.05 KB
/
utils.d.ts
File metadata and controls
18 lines (18 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
export declare const noop: () => void;
export declare const identity: (x: any) => any;
export declare const assign: <T, S>(tar: T, src: S) => T & S;
export declare const isPromise: <T = any>(value: any) => value is PromiseLike<T>;
export declare const run: (callback: any) => any;
export declare const blankObject: () => any;
export declare const runAll: (fns: any) => void;
export declare const isFunction: (thing: any) => thing is Function;
export declare const safeNotEqual: (a: any, b: any) => boolean;
export declare const notEqual: (a: any, b: any) => boolean;
export declare const isEmpty: (obj: any) => boolean;
export declare const validateStore: (store: any, name: any) => void;
export declare const subscribe: (store: any, ...callbacks: any[]) => any;
export declare const getStoreValue: (store: any) => any;
export declare const once: (fn: any) => (this: any, ...args: any[]) => void;
export declare const nullToEmpty: (value: any) => any;
export declare const hasProp: (obj: any, prop: any) => any;
export declare const actionDestroyer: (action_result: any) => any;