Skip to content

Instantly share code, notes, and snippets.

@adamgen
Created March 5, 2019 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamgen/bd79823f564bf277964ca52965022b83 to your computer and use it in GitHub Desktop.
Save adamgen/bd79823f564bf277964ca52965022b83 to your computer and use it in GitHub Desktop.
// any type of callable
type callable = (...args: any[]) => any;
// only acept values of object T
type ValueOf<T> = T[keyof T];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment