Skip to content

Commit

Permalink
Add types for symbol methods
Browse files Browse the repository at this point in the history
  • Loading branch information
phenomnomnominal authored Nov 11, 2019
1 parent 96d1197 commit dcbb3e2
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 dcbb3e2

Please sign in to comment.