Skip to content

Commit

Permalink
Export Arguments type (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alon-L authored Aug 15, 2020
1 parent b1fea4b commit 1785367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
type Arguments<T> = [T] extends [(...args: infer U) => any]
export type Arguments<T> = [T] extends [(...args: infer U) => any]
? U
: [T] extends [void] ? [] : [T]

Expand Down

0 comments on commit 1785367

Please sign in to comment.