Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add support for typescript files #15

Open
eduardconstantin opened this issue Nov 17, 2023 · 4 comments
Open

[Feature] Add support for typescript files #15

eduardconstantin opened this issue Nov 17, 2023 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@eduardconstantin
Copy link
Owner

Description
The CLI currently only supports JS files, which limits the users who want to use TypeScript for their projects.

Describe the solution you'd like
The tool should support both TS and JS files by identifying the file extension and creating storybook stories with the corresponding extension.

@eduardconstantin eduardconstantin added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Nov 17, 2023
@undesicimo
Copy link

Excited for this. Do you have anything in mind to implement this? Maybe using react-docgen-typescript?

@eduardconstantin
Copy link
Owner Author

I haven't looked into solutions, any advice is welcome.
react-docgen-typescript looks interesting, this can create typescript types for component's props?

@undesicimo
Copy link

Yes, what i am aware of.
Maybe the implementation of the following VSCODE Extension might be a good reference.
https://github.com/riccardo-forina/storybook-vscode-helper

@eduardconstantin
Copy link
Owner Author

Nice, I'll take a look at that too. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants