mattpocock / xstate-codegen

A codegen tool for 100% TS type-safety in XState
MIT License
245 stars 12 forks source link

'Interpret' is typed incorrectly #31

Closed mattpocock closed 3 years ago

mattpocock commented 4 years ago

interpret, exported from xstate, does not take a second parameter. In the generated code, it does - and the second parameter is required. We should fix this.

mwarger commented 3 years ago

@mattpocock does it take a second parameter though? https://xstate.js.org/docs/guides/interpretation.html#options