(callback: T, source: string)
| 876 | } |
| 877 | |
| 878 | public wrap<T extends Function>(callback: T, source: string): T { |
| 879 | if (typeof callback !== 'function') { |
| 880 | throw new Error('Expecting function got: ' + callback); |
| 881 | } |
| 882 | const _callback = this._zoneDelegate.intercept(this, callback, source); |
| 883 | const zone: ZoneImpl = this; |
| 884 | return function (this: unknown) { |
| 885 | return zone.runGuarded(_callback, this, <any>arguments, source); |
| 886 | } as any as T; |
| 887 | } |
| 888 | |
| 889 | public run(callback: Function, applyThis?: any, applyArgs?: any[], source?: string): any; |
| 890 | public run<T>( |
nothing calls this directly
no test coverage detected