You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b243830
Browse filesBrowse the repository at this point in the historyBrowse files
All TypeScript component snippets use `type` for Props/State by default. Change to `interface` via the `typescriptPropsStatePrefix` setting.
482
+
All TypeScript component snippets use `type` for Props/State by default. Change to `interface` via the `typescriptPropsStatePrefix` setting. Set `typescriptPropsNaming` to `component` to derive the Props type from the component name, for example `ButtonProps`.
Copy file name to clipboardExpand all lines: package.json
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,16 @@
122
122
],
123
123
"scope": "application"
124
124
},
125
+
"reactSnippets.settings.typescriptPropsNaming": {
126
+
"type": "string",
127
+
"markdownDescription": "Controls whether TypeScript component snippets name their props type `Props` or derive it from the component name, for example `ButtonProps`.",
128
+
"default": "generic",
129
+
"enum": [
130
+
"generic",
131
+
"component"
132
+
],
133
+
"scope": "application"
134
+
},
125
135
"reactSnippets.settings.componentWrapper": {
126
136
"type": "string",
127
137
"markdownDescription": "Controls whether component snippets wrap their content in a React fragment or a `div`.",
0 commit comments