Remove useless TS type (#318)
This commit is contained in:
parent
29e036638b
commit
e708463377
1 changed files with 10 additions and 12 deletions
|
@ -191,20 +191,18 @@ Then you can use it in your JSX like any other editable component. Note the make
|
||||||
primitive: editable('primitive', null),
|
primitive: editable('primitive', null),
|
||||||
} as unknown as {
|
} as unknown as {
|
||||||
[Property in Keys]: React.ForwardRefExoticComponent<
|
[Property in Keys]: React.ForwardRefExoticComponent<
|
||||||
React.PropsWithRef<
|
Omit<JSX.IntrinsicElements[Property], 'visible'> & {
|
||||||
Omit<JSX.IntrinsicElements[Property], 'visible'> & {
|
theatreKey: string
|
||||||
theatreKey: string
|
visible?: boolean | 'editor'
|
||||||
visible?: boolean | 'editor'
|
additionalProps?: $FixMe
|
||||||
additionalProps?: $FixMe
|
objRef?: $FixMe
|
||||||
objRef?: $FixMe
|
// not exactly sure how to get the type of the threejs object itself
|
||||||
// not exactly sure how to get the type of the threejs object itself
|
ref?: Ref<unknown>
|
||||||
ref?: Ref<unknown>
|
}
|
||||||
}
|
|
||||||
>
|
|
||||||
>
|
>
|
||||||
} & {
|
} & {
|
||||||
primitive: React.ForwardRefExoticComponent<
|
primitive: React.ForwardRefExoticComponent<
|
||||||
React.PropsWithRef<{
|
{
|
||||||
object: any
|
object: any
|
||||||
theatreKey: string
|
theatreKey: string
|
||||||
visible?: boolean | 'editor'
|
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
|
editableType: keyof JSX.IntrinsicElements
|
||||||
// not exactly sure how to get the type of the threejs object itself
|
// not exactly sure how to get the type of the threejs object itself
|
||||||
ref?: Ref<unknown>
|
ref?: Ref<unknown>
|
||||||
}> & {
|
} & {
|
||||||
// Have to reproduce the primitive component's props here because we need to
|
// 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
|
// lift this index type here to the outside to make auto-complete work
|
||||||
[props: string]: any
|
[props: string]: any
|
||||||
|
|
Loading…
Reference in a new issue