-
Notifications
You must be signed in to change notification settings - Fork 443
TypeScript type & interface Props configuration #157
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
Comments
@talohana There is #62 an issue to track those. Unfortunately I didn't have time to look how to implement those options and then apply changes to Option with select options: Interface / Props and then based on this value replace all occurrences of this placeholder in snippets, but it would also force users to restart whole VSCode as snippets are loaded on start AFAIK. |
Editing C:\Users{user}.vscode\extensions\dsznajder.es7-react-js-snippets-3.1.1\snippets\ts-snippets.json and replacing |
Is there a way to save this change with vscode settings sync? |
Tracked in #175 |
TypeScript allows to model types with 2 options - a type and an interface.
A comparison between the two can be found in this blogpost
Is there an option to change the TypeScript snippets to use types instead of interfaces when declaring the
Props
type?For example instead of generating with
tsrafc
to generate
The text was updated successfully, but these errors were encountered: