Update mithril types

This commit is contained in:
Zaid Abdulla committed 2021-08-13 14:36:59 -07:00
1 parent cd8d264f03
commit cc885e7d04
8 files changed
+80 -44

No files matched your search

+2 -2
View File
@@ -22,7 +22,7 @@ import m, {
Attributes,
Children,
ComponentTypes,
Lifecycle,
CommonAttributes,
ClosureComponent,
Vnode,
} from "mithril";
@@ -81,7 +81,7 @@ interface MC extends Static {
<Attrs, State>(
ctx: Attributes,
component: ComponentTypes<Attrs, State>,
attributes: Attrs & Lifecycle<Attrs, State> & { key?: string | number },
attributes: Attrs & CommonAttributes<Attrs, State>,
...args: Children[]
): Vnode<Attrs, State>;
};