refun
Version:
A collection of React Hook-enabled functions that compose harmoniously with each other. Similar to `recompose`, but:
9 lines (8 loc) • 470 B
TypeScript
export declare const shallowEquals: <T extends {}>(a: T, b: T) => boolean;
export declare const shallowEqualByKeys: <T extends {}>(a: T, b: T, keys: (keyof T)[]) => boolean;
export declare const generatorIdFactory: () => {
switchToGenerator: (id: number) => () => void;
newId: () => number;
isGeneratorRunning: (id: number) => boolean;
};
export declare const unwindGenerator: <T>(gen: Generator<Promise<T>, void, T>, shouldContinue: () => boolean) => void;