mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-01 05:05:25 +08:00
Mention ts-node
This commit is contained in:
parent
90c59ed5fe
commit
3f2690f15c
@ -160,6 +160,8 @@ If you would like, you can also write your Storybook configuration using TypeScr
|
||||
|
||||
This babel config will be used to process your stories, as well as your config files.
|
||||
|
||||
Alternatively, you can install [`ts-node`](https://typestrong.org/ts-node/) in your project, which will be used to process your config files without the need for a `.babelrc`.
|
||||
|
||||
Rename your `.storybook/main.js` to `.storybook/main.ts` and restart your Storybook.
|
||||
|
||||
### Using Storybook Types in Your Configuration
|
||||
|
Loading…
x
Reference in New Issue
Block a user