UNPKG

@idiosync/react-observable

Version:

State management control layer for React projects

16 lines (15 loc) 891 B
export declare const tryCatch: <T>(fn: () => Promise<T>, errorMessage?: string) => Promise<[T, Error | undefined]>; export declare const tryCatchSync: <T>(fn: () => T, errorMessage?: string) => [T, Error | undefined]; export declare const identity: <T>(value: T) => T; export declare const isFunction: (value: unknown) => value is Function; export declare const isObject: (value: unknown) => value is object; export declare const isPlainObject: (value: unknown) => value is object; export declare const shallowEqualArrays: (a: any[], b: any[]) => boolean; export declare function uuid(): string; export type CallsiteNameOptions = { libHint?: RegExp; fallback?: string; }; export declare function isDevEnv(): boolean; export declare function getModuleFunctionName(options?: CallsiteNameOptions): string; export declare function getCallsiteName(options?: CallsiteNameOptions): string;