From c069f6423d4abf1a55d87d32ea121cb1752e5b58 Mon Sep 17 00:00:00 2001 From: Alvaro Saburido Date: Tue, 11 Jul 2023 13:38:58 +0200 Subject: [PATCH] fix: fake a `VNodeRef` on types to accept strings and null (#344) * fix: fake a `VNodeRef` on types to accept strings and null * chore: remove unused VNodeRef import --- src/types/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/types/index.ts b/src/types/index.ts index 14835cfe3..58770ba6e 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -144,7 +144,7 @@ type EventProps

= P extends RaycastableRepresentation ? Partial { children?: VNode[] - ref?: Ref

+ ref?: string | null | Ref

key?: string } @@ -159,8 +159,8 @@ export type ThreeElement = Mutable< type ThreeExports = typeof THREE type ThreeInstancesImpl = { [K in keyof ThreeExports as Uncapitalize]: ThreeExports[K] extends ConstructorRepresentation - ? ThreeElement - : never + ? ThreeElement + : never } export interface ThreeInstances extends ThreeInstancesImpl { @@ -172,5 +172,5 @@ type TresComponents = { } declare module 'vue' { - export interface GlobalComponents extends TresComponents {} + export interface GlobalComponents extends TresComponents { } }