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

Commit

Permalink
fix: parameterize wrap method on Zone (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhevery committed Dec 13, 2016
1 parent b1e2062 commit f522e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zone.ts
Expand Up @@ -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<F extends Function>(callback: F, source: string): F;
/**
* Invokes a function in a given zone.
*
Expand Down

0 comments on commit f522e1b

Please sign in to comment.