Skip to content

Commit

Permalink
fix(types): preserve deprecated XR type annotations (#3111)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett authored Dec 3, 2023
1 parent e4bbc29 commit 0ad80d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fiber/src/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { AttachType, catalogue, Instance, InstanceProps, LocalState } from './re
import { Dpr, Renderer, RootState, Size } from './store'

// < r141 shipped vendored types https://github.com/pmndrs/react-three-fiber/issues/2501
// @ts-ignore
/** @ts-ignore */
type _DeprecatedXRFrame = THREE.XRFrame
export type _XRFrame = THREE.WebGLRenderTargetOptions extends { samples?: number } ? XRFrame : _DeprecatedXRFrame

Expand Down

0 comments on commit 0ad80d0

Please sign in to comment.