Skip to content

Commit

Permalink
Merge pull request #1 from phenomnomnominal/phenomnomnominal-symbol-m…
Browse files Browse the repository at this point in the history
…ethod-types

Add types for symbol methods
  • Loading branch information
phenomnomnominal authored Nov 12, 2019
2 parents 96d1197 + dcbb3e2 commit a8eb932
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 a8eb932

Please sign in to comment.