diff --git a/packages/r3f/src/main/editable.tsx b/packages/r3f/src/main/editable.tsx index 34969e9..2e28e97 100644 --- a/packages/r3f/src/main/editable.tsx +++ b/packages/r3f/src/main/editable.tsx @@ -168,6 +168,23 @@ const createEditable = ( } & React.RefAttributes > > + } & { + primitive: React.ForwardRefExoticComponent< + React.PropsWithoutRef< + { + object: any + uniqueName: string + visible?: boolean | 'editor' + additionalProps?: $FixMe + objRef?: $FixMe + editableType: keyof JSX.IntrinsicElements + } & React.RefAttributes + > & { + // Have to reproduce the primitive component's props here because we need to + // lift this index type here to the outside to make auto-complete work + [props: string]: any + } + > } return Object.assign(editable, extensions)