Skip to content

Instantly share code, notes, and snippets.

@tomitrescak
Created July 25, 2018 20:35
Show Gist options
  • Save tomitrescak/1654c90900ac1d96ef00ac86a870cbee to your computer and use it in GitHub Desktop.
Save tomitrescak/1654c90900ac1d96ef00ac86a870cbee to your computer and use it in GitHub Desktop.
export type FirstArgument<T> = T extends (arg1: infer U, …args: any[]) => any ? U : any;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment