Skip to content

Commit 7f20b8d

Browse files
committed
fix: update AsTag type to allow for component type
1 parent 5c0c83d commit 7f20b8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/motion/src/types/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ export type ComponentProps<T> = T extends DefineComponent<
99
: never
1010

1111
export type ElementType = keyof IntrinsicElementAttributes
12-
export type AsTag = keyof IntrinsicElementAttributes| (Component & string) // any other string
12+
export type AsTag = keyof IntrinsicElementAttributes | ({} & string) | Component // any other string

0 commit comments

Comments
 (0)