UNPKG

391 BTypeScriptView Raw
1declare type TCoroutineProps = {
2 cancelOthers: () => void;
3 index: number;
4};
5declare type GeneratorFactory = (props: TCoroutineProps) => Generator<Promise<any>, void, any>;
6declare type RefObject<T> = {
7 current: T;
8};
9export declare const onUpdateAsync: <P extends {}>(onUpdateFn: (props: RefObject<P>) => GeneratorFactory, watchKeys: (keyof P)[]) => (props: P) => P;
10export {};