Skip to content

Commit 59d0a4c

Browse files
committed
feat(invalid-dependency): add invalidAsyncFunction
1 parent e6ab3ba commit 59d0a4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
export const invalidFunction = (message: string) => () => {
22
throw new Error(message);
33
};
4+
5+
export const invalidAsyncFunction = (message: string) => () => Promise.resolve(new Error(message));

0 commit comments

Comments
 (0)