Created
June 1, 2021 11:03
-
-
Save Saul-Mirone/d85494b7eb430f90b80783c6b112a2e6 to your computer and use it in GitHub Desktop.
This file contains 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 characters
type RemoveNever<T> = { [P in keyof T as T[P] extends Function ? P : never]: T[P] }; | |
type A_Methods = RemoveNever<A>; // { render: () => void; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment