mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-18 12:08:59 +08:00
Added workaround for TS 2.4.
This commit is contained in:
2
types/mithril/index.d.ts
vendored
2
types/mithril/index.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user