Skip to content

Commit

Permalink
Update comlink.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
xeoneux authored Nov 16, 2020
1 parent bf557d8 commit dc3ab3d
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 @@ -468,7 +468,7 @@ function processArguments(argumentList: any[]): [WireValue[], Transferable[]] {
}

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

0 comments on commit dc3ab3d

Please sign in to comment.