We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6ab3ba commit 59d0a4cCopy full SHA for 59d0a4c
packages/invalid-dependency/src/index.ts
@@ -1,3 +1,5 @@
1
export const invalidFunction = (message: string) => () => {
2
throw new Error(message);
3
};
4
+
5
+export const invalidAsyncFunction = (message: string) => () => Promise.resolve(new Error(message));
0 commit comments