Skip to content

Commit ccdba85

Browse files
fix(types): preserve deprecated JSX annotations (#3062)
1 parent 0cfb73a commit ccdba85

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

packages/fiber/src/three-types.ts

+31-31
Original file line numberDiff line numberDiff line change
@@ -98,81 +98,81 @@ export type InstancedBufferGeometryProps = BufferGeometryNode<
9898
typeof THREE.InstancedBufferGeometry
9999
>
100100
export type BufferGeometryProps = BufferGeometryNode<THREE.BufferGeometry, typeof THREE.BufferGeometry>
101-
// @ts-ignore
101+
/** @ts-ignore */
102102
export type BoxBufferGeometryProps = BufferGeometryNode<THREE.BoxBufferGeometry, typeof THREE.BoxBufferGeometry>
103103
export type CircleBufferGeometryProps = BufferGeometryNode<
104-
// @ts-ignore
104+
/** @ts-ignore */
105105
THREE.CircleBufferGeometry,
106-
// @ts-ignore
106+
/** @ts-ignore */
107107
typeof THREE.CircleBufferGeometry
108108
>
109-
// @ts-ignore
109+
/** @ts-ignore */
110110
export type ConeBufferGeometryProps = BufferGeometryNode<THREE.ConeBufferGeometry, typeof THREE.ConeBufferGeometry>
111111
export type CylinderBufferGeometryProps = BufferGeometryNode<
112-
// @ts-ignore
112+
/** @ts-ignore */
113113
THREE.CylinderBufferGeometry,
114-
// @ts-ignore
114+
/** @ts-ignore */
115115
typeof THREE.CylinderBufferGeometry
116116
>
117117
export type DodecahedronBufferGeometryProps = BufferGeometryNode<
118-
// @ts-ignore
118+
/** @ts-ignore */
119119
THREE.DodecahedronBufferGeometry,
120-
// @ts-ignore
120+
/** @ts-ignore */
121121
typeof THREE.DodecahedronBufferGeometry
122122
>
123123
export type ExtrudeBufferGeometryProps = BufferGeometryNode<
124-
// @ts-ignore
124+
/** @ts-ignore */
125125
THREE.ExtrudeBufferGeometry,
126-
// @ts-ignore
126+
/** @ts-ignore */
127127
typeof THREE.ExtrudeBufferGeometry
128128
>
129129
export type IcosahedronBufferGeometryProps = BufferGeometryNode<
130-
// @ts-ignore
130+
/** @ts-ignore */
131131
THREE.IcosahedronBufferGeometry,
132-
// @ts-ignore
132+
/** @ts-ignore */
133133
typeof THREE.IcosahedronBufferGeometry
134134
>
135-
// @ts-ignore
135+
/** @ts-ignore */
136136
export type LatheBufferGeometryProps = BufferGeometryNode<THREE.LatheBufferGeometry, typeof THREE.LatheBufferGeometry>
137137
export type OctahedronBufferGeometryProps = BufferGeometryNode<
138-
// @ts-ignore
138+
/** @ts-ignore */
139139
THREE.OctahedronBufferGeometry,
140-
// @ts-ignore
140+
/** @ts-ignore */
141141
typeof THREE.OctahedronBufferGeometry
142142
>
143-
// @ts-ignore
143+
/** @ts-ignore */
144144
export type PlaneBufferGeometryProps = BufferGeometryNode<THREE.PlaneBufferGeometry, typeof THREE.PlaneBufferGeometry>
145145
export type PolyhedronBufferGeometryProps = BufferGeometryNode<
146-
// @ts-ignore
146+
/** @ts-ignore */
147147
THREE.PolyhedronBufferGeometry,
148-
// @ts-ignore
148+
/** @ts-ignore */
149149
typeof THREE.PolyhedronBufferGeometry
150150
>
151-
// @ts-ignore
151+
/** @ts-ignore */
152152
export type RingBufferGeometryProps = BufferGeometryNode<THREE.RingBufferGeometry, typeof THREE.RingBufferGeometry>
153-
// @ts-ignore
153+
/** @ts-ignore */
154154
export type ShapeBufferGeometryProps = BufferGeometryNode<THREE.ShapeBufferGeometry, typeof THREE.ShapeBufferGeometry>
155155
export type SphereBufferGeometryProps = BufferGeometryNode<
156-
// @ts-ignore
156+
/** @ts-ignore */
157157
THREE.SphereBufferGeometry,
158-
// @ts-ignore
158+
/** @ts-ignore */
159159
typeof THREE.SphereBufferGeometry
160160
>
161161
export type TetrahedronBufferGeometryProps = BufferGeometryNode<
162-
// @ts-ignore
162+
/** @ts-ignore */
163163
THREE.TetrahedronBufferGeometry,
164-
// @ts-ignore
164+
/** @ts-ignore */
165165
typeof THREE.TetrahedronBufferGeometry
166166
>
167-
// @ts-ignore
167+
/** @ts-ignore */
168168
export type TorusBufferGeometryProps = BufferGeometryNode<THREE.TorusBufferGeometry, typeof THREE.TorusBufferGeometry>
169169
export type TorusKnotBufferGeometryProps = BufferGeometryNode<
170-
// @ts-ignore
170+
/** @ts-ignore */
171171
THREE.TorusKnotBufferGeometry,
172-
// @ts-ignore
172+
/** @ts-ignore */
173173
typeof THREE.TorusKnotBufferGeometry
174174
>
175-
// @ts-ignore
175+
/** @ts-ignore */
176176
export type TubeBufferGeometryProps = BufferGeometryNode<THREE.TubeBufferGeometry, typeof THREE.TubeBufferGeometry>
177177
export type WireframeGeometryProps = BufferGeometryNode<THREE.WireframeGeometry, typeof THREE.WireframeGeometry>
178178
export type TetrahedronGeometryProps = BufferGeometryNode<THREE.TetrahedronGeometry, typeof THREE.TetrahedronGeometry>
@@ -230,9 +230,9 @@ export type DirectionalLightShadowProps = Node<THREE.DirectionalLightShadow, typ
230230
export type DirectionalLightProps = LightNode<THREE.DirectionalLight, typeof THREE.DirectionalLight>
231231
export type AmbientLightProps = LightNode<THREE.AmbientLight, typeof THREE.AmbientLight>
232232
export type LightShadowProps = Node<THREE.LightShadow, typeof THREE.LightShadow>
233-
// @ts-ignore
233+
/** @ts-ignore */
234234
export type AmbientLightProbeProps = LightNode<THREE.AmbientLightProbe, typeof THREE.AmbientLightProbe>
235-
// @ts-ignore
235+
/** @ts-ignore */
236236
export type HemisphereLightProbeProps = LightNode<THREE.HemisphereLightProbe, typeof THREE.HemisphereLightProbe>
237237
export type LightProbeProps = LightNode<THREE.LightProbe, typeof THREE.LightProbe>
238238

@@ -256,7 +256,7 @@ export type AxesHelperProps = Object3DNode<THREE.AxesHelper, typeof THREE.AxesHe
256256
export type TextureProps = Node<THREE.Texture, typeof THREE.Texture>
257257
export type VideoTextureProps = Node<THREE.VideoTexture, typeof THREE.VideoTexture>
258258
export type DataTextureProps = Node<THREE.DataTexture, typeof THREE.DataTexture>
259-
// @ts-ignore
259+
/** @ts-ignore */
260260
export type DataTexture3DProps = Node<THREE.DataTexture3D, typeof THREE.DataTexture3D>
261261
export type CompressedTextureProps = Node<THREE.CompressedTexture, typeof THREE.CompressedTexture>
262262
export type CubeTextureProps = Node<THREE.CubeTexture, typeof THREE.CubeTexture>

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"strict": true,
1111
"skipLibCheck": true,
1212
"declaration": true,
13-
"removeComments": true,
13+
"removeComments": false,
1414
"emitDeclarationOnly": true,
1515
"resolveJsonModule": true,
1616
"noImplicitThis": false,

0 commit comments

Comments
 (0)