mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
docs: minor Readme updates
This commit is contained in:
parent
86b8b5f5cb
commit
d6e1b408ef
@ -20,7 +20,7 @@ Add this line to your `addons.js` file (create this file inside your storybook c
|
||||
import '@storybook/addon-options/register';
|
||||
```
|
||||
|
||||
###Set options globally
|
||||
### Set options globally
|
||||
|
||||
Import and use the `addParameters` + `options`-key in your `config.js` file.
|
||||
|
||||
@ -128,13 +128,13 @@ storiesOf('Addons|Custom options', module)
|
||||
);
|
||||
```
|
||||
|
||||
## Typescript
|
||||
## TypeScript
|
||||
|
||||
To install type definitions: `yarn add @types/storybook__addon-options --dev`
|
||||
|
||||
Make sure you also have the type definitions installed for the following libs:
|
||||
|
||||
- node
|
||||
- react
|
||||
- Node
|
||||
- React
|
||||
|
||||
You can install them using `yarn add @types/node @types/react --dev`, assuming you are using Typescript >2.0.
|
||||
|
Loading…
x
Reference in New Issue
Block a user