From 178536737cf6923a01224c46c29d777de7a5c8ac Mon Sep 17 00:00:00 2001 From: Alon Livne <37940683+Alon-L@users.noreply.github.com> Date: Sat, 15 Aug 2020 12:19:59 +0300 Subject: [PATCH] Export Arguments type (#11) --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 9cc7cc5..6b0f0b4 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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]