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

Change Default Prop Type Name to FileNameProps in tsrafce Snippet #311

Open
emreastarcioglu opened this issue Oct 4, 2023 · 0 comments
Open

Comments

@emreastarcioglu
Copy link

I frequently use the tsrafce snippet to create functional components with prop type definitions. Currently, the generated prop type name is Props. However, in order to prevent naming conflicts and to streamline global searches within my project, I've been manually renaming it to FileNameProps.

Would it be possible to configure the default behavior of this snippet so that it automatically uses FileNameProps as the prop type name based on the file it's in? This small change would significantly enhance my workflow.

Attached image is displaying the behavior I expect.
image

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

No branches or pull requests

1 participant