Skip to content

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

Open
@emreastarcioglu

Description

@emreastarcioglu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions