File size: 321 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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[]