Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMadClown committed Nov 16, 2020
2 parents 2f8b3ad + 520e4d6 commit cc5874a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/comlink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ function processArguments(argumentList: any[]): [WireValue[], Transferable[]] {
}

const transferCache = new WeakMap<any, Transferable[]>();
export function transfer(obj: any, transfers: Transferable[]) {
export function transfer<T>(obj: T, transfers: Transferable[]): T {
transferCache.set(obj, transfers);
return obj;
}
Expand Down

0 comments on commit cc5874a

Please sign in to comment.