rlaffers / eslint-plugin-xstate

ESLint plugin to check for common mistakes and enforce good practices when using XState.
MIT License
48 stars 4 forks source link

"tsTypes" is actually a valid property for the root state #10

Closed martijnarts closed 2 years ago

martijnarts commented 2 years ago

Describe the bug Using the tsTypes property for a state machine throws "tsTypes" is not a valid property for the root state, but it is a valid property.

Expected behavior tsTypes should be accepted.

Actual behavior It's caught under xstate/no-invalid-state-props.

Versions (please complete the following information):

rlaffers commented 2 years ago

:tada: This issue has been resolved in version 1.0.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

martijnarts commented 2 years ago

Thanks @rlaffers!