Skip to content

Commit 45f802f

Browse files
committed
update typescript doc info
1 parent 8853e6f commit 45f802f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/learn/ui-backends.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ The three supported UI backends are:
1212

1313
`ugui` and `uitoolkit` can be used in runtime UI, whereas `editor` can be used to create editor UI such as windows and inspectors.
1414

15-
In the React project, `tsconfig.json` must contain the following `types` array in order to show correct component types. (Replace `ugui` with desired UI backend)
15+
In the React project, `tsconfig.json` must contain the following config in order to show correct component types. (Replace `ugui` with desired UI backend)
1616

1717
```json
18+
"jsxImportSource": "@reactunity/renderer/ugui"
1819
"types": [
19-
"@reactunity/scripts/main",
20-
"@reactunity/scripts/ugui"
20+
"@reactunity/scripts/main"
2121
]
2222
```
2323

0 commit comments

Comments
 (0)