Skip to content

docs: update example code #82

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

akib22
Copy link

@akib22 akib22 commented Nov 30, 2023

Remove type annotation from preview.js example
solved: #81

Remove type annotation from preview.js example
solved: storybookjs#81
@IanVS
Copy link
Member

IanVS commented Nov 30, 2023

Wouldn't it be better to treat the file as TypeScript, and change the extension to .ts instead? The majority of Storybook developers use TypeScript rather than plain JavaScript.

@akib22
Copy link
Author

akib22 commented Dec 1, 2023

Yes, it is a good idea. Let me update it.
What if we kept both examples (js & ts), what do you think @IanVS?

@IanVS
Copy link
Member

IanVS commented Dec 1, 2023

I don't have a strong opinion, but it doesn't seem worth cluttering the README with two different file formats. Ideally it would be consistent and only use one type, either JS or TS, and personally I'd advocate for TS. But I'm not really maintaining this addon, so feel free to decide however you'd like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants