UNPKG

470 BTypeScriptView Raw
1export declare const shallowEquals: <T extends {}>(a: T, b: T) => boolean;
2export declare const shallowEqualByKeys: <T extends {}>(a: T, b: T, keys: (keyof T)[]) => boolean;
3export declare const generatorIdFactory: () => {
4 switchToGenerator: (id: number) => () => void;
5 newId: () => number;
6 isGeneratorRunning: (id: number) => boolean;
7};
8export declare const unwindGenerator: <T>(gen: Generator<Promise<T>, void, T>, shouldContinue: () => boolean) => void;