Skip to content

Commit

Permalink
feat: add AsyncVoidFn type
Browse files Browse the repository at this point in the history
  • Loading branch information
abxlfazl authored and ASafaeirad committed Mar 5, 2024
1 parent 7809f45 commit ef4c4ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,5 @@ export type Merge<T, U> = T | U extends ObjectType
: T | U extends Map<infer MapKeys, infer MapValues>
? Map<MapKeys, MapValues>
: NullishCoalescing<T, U>;

export type AsyncVoidFn = () => Promise<void>;

0 comments on commit ef4c4ec

Please sign in to comment.