Added workaround for TS 2.4.

This commit is contained in:
András Parditka
2017-06-10 07:27:37 +02:00
parent 9515215657
commit 5db985c075

View File

@@ -44,6 +44,8 @@ declare namespace Mithril {
onbeforeupdate?(this: State, vnode: Vnode<Attrs, State>, old: VnodeDOM<Attrs, State>): boolean | void;
/** The onremove hook is called before a DOM element is removed from the document. */
onupdate?(this: State, vnode: VnodeDOM<Attrs, State>): any;
/** WORKAROUND: TypeScript 2.4 does not allow extending an interface with all-optional properties. */
[_: number]: any;
}
interface Hyperscript {