From dcbb3e22ca3ed8e4332d4985c3ec1b1c2a74b5c2 Mon Sep 17 00:00:00 2001 From: Craig Spence Date: Mon, 11 Nov 2019 02:11:42 +0100 Subject: [PATCH] Add types for symbol methods --- src/comlink.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/comlink.ts b/src/comlink.ts index c5b20a7c..3e87eccd 100644 --- a/src/comlink.ts +++ b/src/comlink.ts @@ -66,7 +66,10 @@ export type Remote = T extends boolean ? Promise : unknown - ); + ) & { + [createEndpoint]: MessagePort; + [releaseProxy]: () => void; + }; declare var x: Remote;