-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
Description
I haven't had a chance to reduce the repro, but people seem eager to get started. I'll try to update with better steps. For now:
- git clone --depth=1 https://github.com/davidkpiano/xstate
- yarn install --ignore-scripts
- tsc -b -f packages/xstate-vue
- Fix
packages/core/src/actions.ts:108:9 - error TS2783: 'type' is specified more than once, so this usage will be overwritten.
- tsc -b -f packages/xstate-vue
Expected: no errors, as in 3.8.3
Actual:
packages/xstate-vue/src/xstate-machine.ts:16:14 - error TS2615: Type of property 'machine' circularly references itself in mapped type 'RecordPropsDefinition<{ machine: any; options: any; }>'.
16 machine: {
~
17 type: Object,
~~~~~~~~~~~~~~~~~~~
...
19 default: () => ({})
~~~~~~~~~~~~~~~~~~~~~~~~~
20 },
~~~~~
packages/xstate-vue/src/xstate-machine.ts:23:23 - error TS2615: Type of property 'options' circularly references itself in mapped type 'RecordPropsDefinition<{ machine: any; options: any; }>'.
23 default: () => ({})
~~
TypeScript Version: 3.9.1-rc
0xorial, bvallee-thefork, jackkoppa, tony-scio and NenadJovicic
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue