import type { MathType, MathTypes } from '@react-three/fiber' export type OverwriteMathProps = { [K in keyof T]: Exclude extends MathTypes ? T[K] extends undefined ? MathType> | undefined : MathType> : T[K] } export type ExpandNestedProps = { [K in keyof NonNullable as K extends string ? `${Prop}-${K}` : 'never']: NonNullable[K] }