Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit f522e1b

Browse files
authored
fix: parameterize wrap method on Zone (#542)
1 parent b1e2062 commit f522e1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/zone.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ interface Zone {
177177
* @param source A unique debug location of the API being wrapped.
178178
* @returns {function(): *} A function which will invoke the `callback` through [Zone.runGuarded].
179179
*/
180-
wrap(callback: Function, source: string): Function;
180+
wrap<F extends Function>(callback: F, source: string): F;
181181
/**
182182
* Invokes a function in a given zone.
183183
*

0 commit comments

Comments
 (0)