From f522e1bf6dddc9ea1d75d5a38cb1b9835e3aae8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=A1ko=20Hevery?= Date: Tue, 13 Dec 2016 14:55:54 -0800 Subject: [PATCH] fix: parameterize `wrap` method on `Zone` (#542) --- lib/zone.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zone.ts b/lib/zone.ts index 7ae9b97f3..e67f91a32 100644 --- a/lib/zone.ts +++ b/lib/zone.ts @@ -177,7 +177,7 @@ interface Zone { * @param source A unique debug location of the API being wrapped. * @returns {function(): *} A function which will invoke the `callback` through [Zone.runGuarded]. */ - wrap(callback: Function, source: string): Function; + wrap(callback: F, source: string): F; /** * Invokes a function in a given zone. *