Last active
February 11, 2024 00:30
-
-
Save kujo205/06e1b5d35b362f3094d6b9fb58e3aad6 to your computer and use it in GitHub Desktop.
Revisions
-
kujo205 revised this gist
Feb 11, 2024 . 2 changed files with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ type ExtractClassMethodReturnTypes<T> = { [K in keyof T]: T[K] extends (...args: any[]) => infer R ? Awaited<R> : never; }; type AuthControllerMethods = ExtractClassMethodReturnTypes<AuthController>; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +0,0 @@ -
kujo205 renamed this gist
Feb 11, 2024 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
kujo205 created this gist
Feb 11, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ type ExtractMethodReturnTypes<T> = { [K in keyof T]: T[K] extends (...args: any[]) => infer R ? Awaited<R> : never; }; type AuthControllerMethods = ExtractMethodReturnTypes<AuthController>;