From ac2daf172e26202528aa408c88ab6797ea01fe8a Mon Sep 17 00:00:00 2001 From: Brandon Chinn Date: Thu, 3 Oct 2019 22:46:15 -0700 Subject: [PATCH] Remove mentions of @types/storybook__react --- docs/src/pages/configurations/typescript-config/index.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/docs/src/pages/configurations/typescript-config/index.md b/docs/src/pages/configurations/typescript-config/index.md index db33d163e215..31146ee143b0 100644 --- a/docs/src/pages/configurations/typescript-config/index.md +++ b/docs/src/pages/configurations/typescript-config/index.md @@ -12,7 +12,6 @@ This is a central reference for using Storybook with TypeScript. ```bash yarn add -D typescript yarn add -D awesome-typescript-loader -yarn add -D @types/storybook__react # typings yarn add -D @storybook/addon-info react-docgen-typescript-loader # optional but recommended yarn add -D jest "@types/jest" ts-jest #testing ``` @@ -83,12 +82,6 @@ This is for the default configuration where `/stories` is a peer of `src`. If yo When using latest create-react-app (CRA 3.0), Babel 7 has native TypeScript 3.5.0 support. Setup becomes easier. For a full working demo (that also uses react-docgen-typescript-loader) you can check out this [repo](https://github.com/Luchanso/storybook-cra-ts-example). -### Dependencies you may need - -```bash -yarn add -D @types/storybook__react # typings -``` - ### Setting up TypeScript to work with Storybook We first have to use the [custom Webpack config in full control mode, extending default configs](/configurations/custom-webpack-config/#full-control-mode--default) by creating a `webpack.config.js` file in our Storybook configuration directory (by default, it’s `.storybook`):