Skip to content

Commit

Permalink
make sure the ts-ignore is above the problematic line
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Dec 4, 2024
1 parent bad67ec commit cee18ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react/src/jsx-namespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ type ReactJSXIntrinsicElements = true extends IsPreReact19
: /** @ts-ignore */
React.JSX.IntrinsicElements

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

Expand Down

0 comments on commit cee18ef

Please sign in to comment.