Skip to content

Commit 45cb882

Browse files
Updated typings;
1 parent 861b2a4 commit 45cb882

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

use-async-effect.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ export function useAsyncEffect(generator: CPromiseGenerator, options?: UseAsyncE
8080
export function useAsyncCallback(generator: CPromiseGenerator, deps?: any[]): DecoratedCallback
8181
export function useAsyncCallback(generator: CPromiseGenerator, options?: UseAsyncFnOptions): DecoratedCallback
8282

83+
export function useAsyncState(initialValue: any): [any, (newState?: any)=> Promise<unknown>]
84+
export function useAsyncWatcher(...values: any): (grabPrevValue?: boolean)=> Promise<any>
85+
86+
87+
8388
export const E_REASON_UNMOUNTED: 'E_REASON_UNMOUNTED'
8489
export const E_REASON_QUEUE_OVERFLOW: 'E_REASON_QUEUE_OVERFLOW'
8590
export const E_REASON_RESTART: 'E_REASON_RESTART'

0 commit comments

Comments
 (0)