We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 144a780 commit 8aad296Copy full SHA for 8aad296
1 file changed
packages/react-tools/src/utils/isAsync.ts
@@ -1,5 +1,6 @@
1
/**
2
* **`isAsync`**: It detects if a function is asynchronous.
3
+ * @param {(...args: unknown[])=> Eìunknown | Promise<unknown>}
4
* @returns {boolean} result
5
*/
6
export const isAsync = <T extends unknown[], E = unknown>(fn: (...args: T)=> E | Promise<E>): boolean => {
0 commit comments