We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69439cc commit d7bf03eCopy full SHA for d7bf03e
src/core/shapes.tsx
@@ -2,10 +2,7 @@ import * as React from 'react'
2
import * as THREE from 'three'
3
4
export type Args<T> = T extends new (...args: any) => any ? ConstructorParameters<T> : T
5
-export type ShapeProps<T> = Omit<JSX.IntrinsicElements['mesh'], 'args'> & {
6
- args?: Args<T>
7
- children?: React.ReactNode
8
-}
+export type ShapeProps<T> = Omit<JSX.IntrinsicElements['mesh'], 'args'> & { args?: Args<T> }
9
10
function create<T>(type: string, effect?: (mesh: THREE.Mesh) => void) {
11
const El: any = type + 'Geometry'
0 commit comments