Skip to content

Commit 8aad296

Browse files
committed
[FIX] isAsync js doc
1 parent 144a780 commit 8aad296

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/react-tools/src/utils/isAsync.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* **`isAsync`**: It detects if a function is asynchronous.
3+
* @param {(...args: unknown[])=> Eìunknown | Promise<unknown>}
34
* @returns {boolean} result
45
*/
56
export const isAsync = <T extends unknown[], E = unknown>(fn: (...args: T)=> E | Promise<E>): boolean => {

0 commit comments

Comments
 (0)