Skip to content

Commit

Permalink
Merge pull request #397 from phenomnomnominal/master
Browse files Browse the repository at this point in the history
Add types for hidden symbol methods
  • Loading branch information
surma authored Nov 19, 2019
2 parents 96d1197 + a8eb932 commit 9fedcd8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/comlink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ export type Remote<T> =
T extends boolean
? Promise<boolean>
: unknown
);
) & {
[createEndpoint]: MessagePort;
[releaseProxy]: () => void;
};

declare var x: Remote<number>;

Expand Down

0 comments on commit 9fedcd8

Please sign in to comment.