Skip to content

Commit 1101c40

Browse files
committed
Fix type error
1 parent e3d5b25 commit 1101c40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/types/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ export type As =
1616
| (abstract new (...args: any[]) => View<any>);
1717

1818
export type PropsOf<T extends As> = T extends keyof HTMLElementTagNameMap
19-
? Omit<HTMLElementTagNameMap[T], "children" | "style"> & {
19+
? Partial<Omit<HTMLElementTagNameMap[T], "children" | "style">> & {
2020
style?: string;
2121
}
2222
: T extends abstract new (...args: any[]) => View<infer P>
23-
? P
23+
? Partial<P>
2424
: never;
2525

2626
export type RuneElement<T extends As> = PropsOf<T> & {};

0 commit comments

Comments
 (0)