From 5db985c075eea3380543f14dd2d74dc7cee2c45d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Parditka?= Date: Sat, 10 Jun 2017 07:27:37 +0200 Subject: [PATCH] Added workaround for TS 2.4. --- types/mithril/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) 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 {