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