Skip to content

Is there a way to automatically provide types for a "higher order" createMachine? #4315

Answered by Andarist
nstadigs asked this question in General
Discussion options

You must be logged in to vote

You can fix this by pushing TEvent in your custom createMyMachine to the end and by setting its default to never: TS playground

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@nstadigs
Comment options

@Andarist
Comment options

@nstadigs
Comment options

@Andarist
Comment options

Answer selected by nstadigs
@nstadigs
Comment options

@Andarist
Comment options

@nstadigs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants