From 7f20b8d4f7678cd43becd1026d97581c9582ea38 Mon Sep 17 00:00:00 2001 From: Persephone Flores <34418758+hp0844182@users.noreply.github.com> Date: Thu, 3 Apr 2025 19:49:41 +0800 Subject: [PATCH] fix: update AsTag type to allow for component type --- packages/motion/src/types/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/motion/src/types/common.ts b/packages/motion/src/types/common.ts index 7e97aac..8465e2e 100644 --- a/packages/motion/src/types/common.ts +++ b/packages/motion/src/types/common.ts @@ -9,4 +9,4 @@ export type ComponentProps = T extends DefineComponent< : never export type ElementType = keyof IntrinsicElementAttributes -export type AsTag = keyof IntrinsicElementAttributes| (Component & string) // any other string +export type AsTag = keyof IntrinsicElementAttributes | ({} & string) | Component // any other string