Skip to content

Commit

Permalink
Fix type for createEndpoint (#418)
Browse files Browse the repository at this point in the history
Fix type for createEndpoint
  • Loading branch information
surma authored Jan 6, 2020
2 parents 856f5b1 + b66913d commit 58613a2
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 @@ -67,7 +67,7 @@ export type Remote<T> =
? Promise<boolean>
: unknown
) & {
[createEndpoint]: MessagePort;
[createEndpoint]: () => Promise<MessagePort>;
[releaseProxy]: () => void;
};

Expand Down

0 comments on commit 58613a2

Please sign in to comment.