Skip to content

Commit 0682f97

Browse files
committed
Add note
1 parent 9e01414 commit 0682f97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/components.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ export type Component<ComponentProps> =
4848
*
4949
* You can access props at `JSX.IntrinsicElements`.
5050
* For example, to find props for `a`, use `JSX.IntrinsicElements['a']`.
51-
5251
*/
52+
// Note: this type has to be in `.ts` or `.d.ts`, otherwise TSC hardcodes
53+
// react into the `.d.ts` file.
5354
export type Components = {
5455
[TagName in keyof JSX.IntrinsicElements]:
5556
| Component<JSX.IntrinsicElements[TagName]>

0 commit comments

Comments
 (0)