Skip to content

Commit 59bcf37

Browse files
authored
chore: update @types/react-reconciler (#2209)
1 parent 297ee03 commit 59bcf37

File tree

7 files changed

+916
-2273
lines changed

7 files changed

+916
-2273
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
"@preconstruct/cli": "^2.1.5",
5050
"@testing-library/react": "^13.0.0-alpha.5",
5151
"@types/jest": "^27.4.1",
52-
"@types/react": "^17.0.43",
53-
"@types/react-dom": "^17.0.14",
54-
"@types/react-native": "0.67.3",
52+
"@types/react": "^18.0.5",
53+
"@types/react-dom": "^18.0.1",
54+
"@types/react-native": "0.67.4",
5555
"@types/react-test-renderer": "^17.0.1",
5656
"@types/scheduler": "^0.16.2",
5757
"@types/three": "^0.139.0",

packages/fiber/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
},
4444
"dependencies": {
4545
"@babel/runtime": "^7.17.8",
46-
"@types/react-reconciler": "^0.26.4",
46+
"@types/react-reconciler": "^0.26.6",
4747
"react-merge-refs": "^1.1.0",
4848
"react-reconciler": "^0.27.0",
4949
"react-use-measure": "^2.1.1",

packages/fiber/src/core/events.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as THREE from 'three'
2-
// @ts-ignore
32
import { ContinuousEventPriority, DiscreteEventPriority, DefaultEventPriority } from 'react-reconciler/constants'
43
import { getRootState } from './utils'
54
import type { UseBoundStore } from 'zustand'

packages/fiber/src/core/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as THREE from 'three'
22
import * as React from 'react'
3-
// @ts-ignore
43
import { ConcurrentRoot } from 'react-reconciler/constants'
54
import create, { UseBoundStore } from 'zustand'
65

packages/fiber/src/core/renderer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as THREE from 'three'
22
import { UseBoundStore } from 'zustand'
33
import Reconciler from 'react-reconciler'
44
import { unstable_IdlePriority as idlePriority, unstable_scheduleCallback as scheduleCallback } from 'scheduler'
5-
// @ts-ignore
65
import { DefaultEventPriority } from 'react-reconciler/constants'
76
import {
87
is,

packages/fiber/src/core/utils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ export function Block({ set }: Omit<UnblockProps, 'children'>) {
3333
return null
3434
}
3535

36-
export class ErrorBoundary extends React.Component<{ set: React.Dispatch<any> }, { error: boolean }> {
36+
export class ErrorBoundary extends React.Component<
37+
{ set: React.Dispatch<any>; children: React.ReactNode },
38+
{ error: boolean }
39+
> {
3740
state = { error: false }
3841
static getDerivedStateFromError = () => ({ error: true })
3942
componentDidCatch(error: any) {

yarn.lock

Lines changed: 908 additions & 2265 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)