Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jurosh/40292911d0c1ae9afe056b818d5b390d to your computer and use it in GitHub Desktop.
Save jurosh/40292911d0c1ae9afe056b818d5b390d to your computer and use it in GitHub Desktop.
type ReducerActions<R extends Reducer<any, any>> = R extends Reducer<
// eslint-disable-next-line @typescript-eslint/no-explicit-any
any,
infer U
>
? U
: never;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment