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 16ee90b commit 002e2c9Copy full SHA for 002e2c9
site/public/guides/enabling-jsx.md
@@ -120,20 +120,20 @@ If you're using `immaculata/jsx-strings.js` then you should use this:
120
```ts
121
declare namespace JSX {
122
123
- type ElementChildrenAttribute = {
124
- children: (
125
- | string
126
- | false
127
- | null
128
- | undefined
129
- | ElementChildrenAttribute['children'][])
130
- }
+ type jsxChildren =
+ | string
+ | false
+ | null
+ | undefined
+ | jsxChildren[]
+
+ type ElementChildrenAttribute = { children: jsxChildren }
131
132
type Element = string
133
134
type ElementType =
135
| string
136
- | ((data: any) => ElementChildrenAttribute['children'])
+ | ((data: any) => jsxChildren)
137
138
}
139
```
0 commit comments