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] extends [(...args: infer U) => any] +export type Arguments = [T] extends [(...args: infer U) => any] ? U : [T] extends [void] ? [] : [T]