Skip to content
This repository was archived by the owner on Nov 13, 2025. It is now read-only.

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: storybook-eol#81
@IanVS
Copy link

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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants