Skip to content

Commit cee18ef

Browse files
committed
make sure the ts-ignore is above the problematic line
1 parent bad67ec commit cee18ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react/src/jsx-namespace.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ type ReactJSXIntrinsicElements = true extends IsPreReact19
5454
: /** @ts-ignore */
5555
React.JSX.IntrinsicElements
5656

57+
// based on the code from @types/[email protected]
58+
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/3197efc097d522c4bf02b94e1a0766d007d6cdeb/types/react/index.d.ts#LL3204C13-L3204C13
5759
/** @ts-ignore */
5860
type ReactJSXElementType = true extends IsPreReact19
59-
? // based on the code from @types/[email protected]
60-
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/3197efc097d522c4bf02b94e1a0766d007d6cdeb/types/react/index.d.ts#LL3204C13-L3204C13
61-
string | React.JSXElementConstructor<any>
61+
? string | React.JSXElementConstructor<any>
6262
: /** @ts-ignore */
6363
React.JSX.ElementType
6464

0 commit comments

Comments
 (0)