We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3d5b25 commit 1101c40Copy full SHA for 1101c40
packages/types/src/index.ts
@@ -16,11 +16,11 @@ export type As =
16
| (abstract new (...args: any[]) => View<any>);
17
18
export type PropsOf<T extends As> = T extends keyof HTMLElementTagNameMap
19
- ? Omit<HTMLElementTagNameMap[T], "children" | "style"> & {
+ ? Partial<Omit<HTMLElementTagNameMap[T], "children" | "style">> & {
20
style?: string;
21
}
22
: T extends abstract new (...args: any[]) => View<infer P>
23
- ? P
+ ? Partial<P>
24
: never;
25
26
export type RuneElement<T extends As> = PropsOf<T> & {};
0 commit comments