Skip to content

Instantly share code, notes, and snippets.

@Jtosbornex
Created November 21, 2021 04:48
Show Gist options
  • Save Jtosbornex/58b9c0203d4547fdf6e237661f74aec5 to your computer and use it in GitHub Desktop.
Save Jtosbornex/58b9c0203d4547fdf6e237661f74aec5 to your computer and use it in GitHub Desktop.
Typescript resolve function arguments utility type
export type PickFnArgs<Q> = Q extends (...args: infer P) => unknown ? P : never;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment