UNPKG

glodrei

Version:

useful add-ons for react-three-fiber

4 lines (3 loc) 267 B
import { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react'; export type NamedArrayTuple<T extends (...args: any) => any> = Parameters<T>; export type ForwardRefComponent<P, T> = ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;