diff --git a/typescript/types/other.d.ts b/typescript/types/other.d.ts index 2a58b9fe1..8f0d07855 100644 --- a/typescript/types/other.d.ts +++ b/typescript/types/other.d.ts @@ -9,3 +9,5 @@ interface IArguments { // Helper type type Exclude = T extends U ? never : T; + +type ReturnType = T extends (...args: any[]) => infer R ? R : never;