From de2bc3fcdb5ea5552c0ba700e48a6030cd08095b Mon Sep 17 00:00:00 2001 From: Markus Lanthaler Date: Sun, 3 Apr 2016 21:07:17 +0200 Subject: [PATCH 1/3] 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 From efeda855964208cd1d174ba432cf33cd812fb9d1 Mon Sep 17 00:00:00 2001 From: Markus Lanthaler Date: Mon, 4 Apr 2016 22:35:47 +0200 Subject: [PATCH 2/3] Update author list --- incremental-dom/incremental-dom.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/incremental-dom/incremental-dom.d.ts b/incremental-dom/incremental-dom.d.ts index d463bce5a..0ab8adde7 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: Markus Lanthaler +// Definitions by: Definitions by: Basarat Ali Syed , Markus Lanthaler // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "incremental-dom" { From f0a8d77e37c6de6e18686573d40e54f6da0af41e Mon Sep 17 00:00:00 2001 From: Markus Lanthaler Date: Mon, 4 Apr 2016 22:36:13 +0200 Subject: [PATCH 3/3] Update author list, again :-) --- incremental-dom/incremental-dom.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/incremental-dom/incremental-dom.d.ts b/incremental-dom/incremental-dom.d.ts index 0ab8adde7..56fd84542 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: Definitions by: Basarat Ali Syed , Markus Lanthaler +// Definitions by: Basarat Ali Syed , Markus Lanthaler // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "incremental-dom" {