Skip to content

Commit

Permalink
ref: Loosen typings in wrap method
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed Aug 8, 2019
1 parent d2cff1a commit 332b3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/browser/src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export function close(timeout?: number): Promise<boolean> {
*
* @returns The result of wrapped function call.
*/
export function wrap<T>(fn: () => T): ReturnType<typeof fn> {
export function wrap(fn: Function): any {
// tslint:disable-next-line: no-unsafe-any
return internalWrap(fn)();
}

0 comments on commit 332b3a2

Please sign in to comment.