Storybook: Create documentation section for using TypeScript with Storybook

Created on 23 Mar 2018  Â·  7Comments  Â·  Source: storybookjs/storybook

If you are creating a issue to track work to be completed, start here:

Work summary

There is a decent amount of config needed for TypeScript to work within Storybook. We should document the TS definitions, scripts, configs, etc. needed to get all the features working.

Where to start

A new page within /docs is probably the best way to go.

Acceptance criteria

Who to contact

I personally don't use TS but it is a widely requested topic within our GitHub issues.

compatibility with other tools documentation typescript

Most helpful comment

Probably it is time to add a label for TypeScript.

All 7 comments

i'll give this a crack next week

edit: am getting approval to do this on company time, gimme a few days

Probably it is time to add a label for TypeScript.

@tsiq-swyx, Here's some grist:

*successfully: I'm on webpack 4, using the 4-compatible version of awesome-typescript-loader, which breaks on webpack 3, which is used in storybook 3. Everything (so far) works fine with storybook 4.0.0-alpha.1. I'd definitely include a webpack version caveat.

appreciated! taking surprisingly long to get company approval, but def keen
to get started on this.

On Fri, Mar 30, 2018 at 11:18 AM, Ed Staub notifications@github.com wrote:

@tsiq-swyx https://github.com/tsiq-swyx, Here's some grist:

*successfully: I'm on webpack 4, using the 4-compatible version of
awesome-typescript-loader, which breaks on webpack 3, which is used in
storybook 3. Everything (so far) works fine with storybook 4.0.0-alpha.1.
I'd definitely include a webpack version caveat.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/storybooks/storybook/issues/3270#issuecomment-377547572,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AiT1ghPcsDg5UqQO8g2OWAVEg8ChkWFQks5tjkzBgaJpZM4S5N-b
.

Hi friends,

I am going to start work on this now. Appreciate the wait.

Going to document how to get it to look a bit nicer too like this:

image

Any chance we can get a storybook installer that follows up https://github.com/Microsoft/TypeScript-React-Starter ? I'm not looking forward to setting up Storybook with my typescript react project the first time around.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

miljan-aleksic picture miljan-aleksic  Â·  3Comments

wahengchang picture wahengchang  Â·  3Comments

tlrobinson picture tlrobinson  Â·  3Comments

oriSomething picture oriSomething  Â·  3Comments

dnlsandiego picture dnlsandiego  Â·  3Comments