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