Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
321 Bytes
import * as THREE from 'three'
import '@react-three/fiber'
import { JSX } from 'react'
export type Primitives = keyof JSX.IntrinsicElements
export const primitives = ['primitive'].concat(
Object.keys(THREE)
.filter(key => /^[A-Z]/.test(key))
.map(key => key[0].toLowerCase() + key.slice(1))
) as Primitives[]