We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a832ae5 commit c204aa7Copy full SHA for c204aa7
site/public/guides/enabling-jsx.md
@@ -115,6 +115,22 @@ declare namespace JSX {
115
}
116
```
117
118
+If you're using `immaculata/jsx-strings.js` then you should use this:
119
+
120
+```ts
121
+declare namespace JSX {
122
123
+ type ElementChildrenAttribute = { children: string | false | null | undefined | ElementChildrenAttribute['children'][] }
124
125
+ type Element = string
126
127
+ type ElementType =
128
+ | string
129
+ | ((data: any) => ElementChildrenAttribute['children'])
130
131
+}
132
+```
133
134
For HTML tag autocompletion and good-enough attr validation:
135
136
```ts
0 commit comments