From de2bc3fcdb5ea5552c0ba700e48a6030cd08095b Mon Sep 17 00:00:00 2001 From: Markus Lanthaler Date: Sun, 3 Apr 2016 21:07:17 +0200 Subject: [PATCH] Fix incremental-dom typings --- incremental-dom/incremental-dom.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/incremental-dom/incremental-dom.d.ts b/incremental-dom/incremental-dom.d.ts index 57ff470cf..d463bce5a 100644 --- a/incremental-dom/incremental-dom.d.ts +++ b/incremental-dom/incremental-dom.d.ts @@ -1,6 +1,6 @@ // Type definitions for Incremetal DOM // Project: https://github.com/google/incremental-dom -// Definitions by: Basarat Ali Syed +// Definitions by: Markus Lanthaler // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "incremental-dom" { @@ -8,10 +8,11 @@ declare module "incremental-dom" { * Patches the document starting at el with the provided function. This function * may be called during an existing patch operation. * @param {!Element} el the element to patch - * @param {!function} fn A function containing elementOpen/elementClose/etc. + * @param {!function(T)} fn A function containing elementOpen/elementClose/etc. * calls that describe the DOM. + * @param {?T} data An argument passed to fn to represent DOM state. */ - export var patch: (el: Node, fn: Function) => void; + export var patch: (el: Node, fn: (data: T) => void, data?: T) => void; /** * Declares a virtual Element at the current location in the document. This