Remove useless TS type (#318)
This commit is contained in:
parent
29e036638b
commit
e708463377
1 changed files with 10 additions and 12 deletions
|
@ -191,7 +191,6 @@ 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'
|
||||
|
@ -201,10 +200,9 @@ Then you can use it in your JSX like any other editable component. Note the make
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue