diff --git a/packages/r3f/src/main/editable.tsx b/packages/r3f/src/main/editable.tsx index 94f56c4..7969335 100644 --- a/packages/r3f/src/main/editable.tsx +++ b/packages/r3f/src/main/editable.tsx @@ -191,20 +191,18 @@ Then you can use it in your JSX like any other editable component. Note the make primitive: editable('primitive', null), } as unknown as { [Property in Keys]: React.ForwardRefExoticComponent< - React.PropsWithRef< - Omit & { - theatreKey: string - visible?: boolean | 'editor' - additionalProps?: $FixMe - objRef?: $FixMe - // not exactly sure how to get the type of the threejs object itself - ref?: Ref - } - > + Omit & { + theatreKey: string + visible?: boolean | 'editor' + additionalProps?: $FixMe + objRef?: $FixMe + // not exactly sure how to get the type of the threejs object itself + ref?: Ref + } > } & { primitive: React.ForwardRefExoticComponent< - React.PropsWithRef<{ + { object: any theatreKey: string visible?: boolean | 'editor' @@ -213,7 +211,7 @@ Then you can use it in your JSX like any other editable component. Note the make editableType: keyof JSX.IntrinsicElements // not exactly sure how to get the type of the threejs object itself ref?: Ref - }> & { + } & { // 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