Skip to content

Instantly share code, notes, and snippets.

@Saul-Mirone
Created June 1, 2021 11:03
Show Gist options
  • Save Saul-Mirone/d85494b7eb430f90b80783c6b112a2e6 to your computer and use it in GitHub Desktop.
Save Saul-Mirone/d85494b7eb430f90b80783c6b112a2e6 to your computer and use it in GitHub Desktop.
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