Remove useless TS type (#318)

This commit is contained in:
Andrew Prifer 2022-10-17 16:13:23 +02:00 committed by GitHub
parent 29e036638b
commit e708463377
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<JSX.IntrinsicElements[Property], 'visible'> & {
theatreKey: string
visible?: boolean | 'editor'
additionalProps?: $FixMe
objRef?: $FixMe
// not exactly sure how to get the type of the threejs object itself
ref?: Ref<unknown>
}
>
Omit<JSX.IntrinsicElements[Property], 'visible'> & {
theatreKey: string
visible?: boolean | 'editor'
additionalProps?: $FixMe
objRef?: $FixMe
// not exactly sure how to get the type of the threejs object itself
ref?: Ref<unknown>
}
>
} & {
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<unknown>
}> & {
} & {
// 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