Skip to content

Commit 002e2c9

Browse files
committed
Fix type error.
1 parent 16ee90b commit 002e2c9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

site/public/guides/enabling-jsx.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,20 @@ If you're using `immaculata/jsx-strings.js` then you should use this:
120120
```ts
121121
declare namespace JSX {
122122

123-
type ElementChildrenAttribute = {
124-
children: (
125-
| string
126-
| false
127-
| null
128-
| undefined
129-
| ElementChildrenAttribute['children'][])
130-
}
123+
type jsxChildren =
124+
| string
125+
| false
126+
| null
127+
| undefined
128+
| jsxChildren[]
129+
130+
type ElementChildrenAttribute = { children: jsxChildren }
131131

132132
type Element = string
133133

134134
type ElementType =
135135
| string
136-
| ((data: any) => ElementChildrenAttribute['children'])
136+
| ((data: any) => jsxChildren)
137137

138138
}
139139
```

0 commit comments

Comments
 (0)