Skip to content

Commit

Permalink
feat: primitive typings for single function
Browse files Browse the repository at this point in the history
  • Loading branch information
betula committed Jun 17, 2022
1 parent 6a1aabc commit b56f6f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ declare function batch(...args: any[]): any;
declare function untrack(...args: any[]): any;


declare function single(...args: any[]): any;
declare const single: {
<M>(target: (new () => M) | (() => M)): M;
}

declare function free(...args: any[]): any;
declare function mock(...args: any[]): any;
declare function unmock(...args: any[]): any;
Expand Down

0 comments on commit b56f6f1

Please sign in to comment.