SimeonC / storybook-xstate-addon

A storybook addon to assist with writing stories that rely on xstate
https://SimeonC.github.io/storybook-xstate-addon/
MIT License
54 stars 6 forks source link

Typescript type issue #39

Closed whl83111 closed 2 years ago

whl83111 commented 2 years ago

Hi,

Typescript type seems not work when I using RenderMachine with version 2.2.0,

import { RenderMachine } from 'storybook-xstate-addon/RenderMachine'; // type check failed

The problem seems to be in RenderMachine.d.ts

export * from "./dist/RenderMachine";

It should be:

export * from "./dist/ts/RenderMachine";
github-actions[bot] commented 2 years ago

:rocket: Issue was released in v2.2.1 :rocket:

github-actions[bot] commented 2 years ago

:rocket: Issue was released in v2.2.1 :rocket:

github-actions[bot] commented 2 years ago

:rocket: Issue was released in v2.2.1 :rocket: