diff --git a/src/Transformations.ts b/src/Transformations.ts index 4d1ae18..c0631e2 100644 --- a/src/Transformations.ts +++ b/src/Transformations.ts @@ -30,7 +30,7 @@ export type ObjectSubstitute = ObjectSub type TerminatingObject = { [P in keyof T]: - T[P] extends (...args: infer F) => any ? (...args: F) => void : + T[P] extends (...args: infer F) => any ? ((...args: F) => void) & ((arg: AllArguments) => void) : T[P] extends () => any ? () => void : T[P]; }