@@ -21,29 +21,29 @@ Hook to manage the execution order of asynchronous tasks
2121useAsyncOrder ({
2222 task: ((
2323 resolve ? : Resolve ,
24- reject ? : interruptibleRejectType ,
24+ reject ? : InterruptibleRejectType ,
2525 index ? : number
2626 ) => void )[]
2727 option ?: {
2828 delay?: number
2929 onReady ?: () => void
30- onSuccess ?: (result : any ) => void
31- onError ?: (err : any ) => void
30+ onSuccess ?: (result : unknown ) => void
31+ onError ?: (err : unknown ) => void
3232 }})
3333```
3434
3535## Params
3636
3737| Property | Description | Type |
3838| --- | --- | --- |
39- | task | aynchronous task order queue | ` ((resolve?: Resolve,reject?: interruptibleRejectType ,index?: number) => void)[] ` |
39+ | task | aynchronous task order queue | ` ((resolve?: Resolve,reject?: InterruptibleRejectType ,index?: number) => void)[] ` |
4040| option | option | - |
4141
4242## Option
4343
44- | Property | Description | Type |
45- | --------- | -------------------------- | ----------------------- |
46- | delay | delay execution | ` number ` |
47- | onReady | Preparation phase callback | ` void ` |
48- | onSuccess | successful callback | ` (result: any ) => void ` |
49- | onError | error callback | ` (err: any ) => void ` |
44+ | Property | Description | Type |
45+ | --------- | -------------------------- | --------------------------- |
46+ | delay | Delay execution | ` number ` |
47+ | onReady | Preparation phase callback | ` void ` |
48+ | onSuccess | Successful callback | ` (result: unknown ) => void ` |
49+ | onError | Error callback | ` (err: unknown ) => void ` |
0 commit comments