Skip to content

Commit

Permalink
fix: add back deprecated global JSX
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed May 8, 2024
1 parent ef92703 commit 8c32124
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/fiber/src/three-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,13 @@ export interface ThreeElements {
shape: ShapeProps
}

// NOTE: removed in v9 for React 19
declare global {
namespace JSX {
interface IntrinsicElements extends ThreeElements {}
}
}

declare module 'react' {
namespace JSX {
interface IntrinsicElements extends ThreeElements {}
Expand Down

0 comments on commit 8c32124

Please sign in to comment.