Skip to content

Commit

Permalink
Merge pull request #5254 from martinmckenna/docs-update
Browse files Browse the repository at this point in the history
DOCUMENTATION add import for configure to config.js
  • Loading branch information
ndelangen authored and shilman committed Jan 17, 2019
1 parent 616bc71 commit 19720d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/pages/configurations/typescript-config/index.md
Expand Up @@ -112,6 +112,7 @@ The default `tsconfig.json` that comes with CRA works great. If your stories are
Change `config.ts` inside the Storybook config directory (by default, it’s `.storybook`) to import stories made with TypeScript:

```js
import { configure } from '@storybook/react';
// automatically import all files ending in *.stories.tsx
const req = require.context('../stories', true, /.stories.tsx$/);

Expand Down

0 comments on commit 19720d9

Please sign in to comment.