Skip to content

Commit 332b3a2

Browse files
committed
ref: Loosen typings in wrap method
1 parent d2cff1a commit 332b3a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/browser/src/sdk.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export function close(timeout?: number): Promise<boolean> {
162162
*
163163
* @returns The result of wrapped function call.
164164
*/
165-
export function wrap<T>(fn: () => T): ReturnType<typeof fn> {
165+
export function wrap(fn: Function): any {
166166
// tslint:disable-next-line: no-unsafe-any
167167
return internalWrap(fn)();
168168
}

0 commit comments

Comments
 (0)