From b66913d41f33c65da049dad8f8b54e48511d8c83 Mon Sep 17 00:00:00 2001 From: BuffayBu Date: Wed, 25 Dec 2019 22:50:12 +0800 Subject: [PATCH] Fix type for createEndpoint --- src/comlink.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comlink.ts b/src/comlink.ts index d304c94c..b734ff5e 100644 --- a/src/comlink.ts +++ b/src/comlink.ts @@ -67,7 +67,7 @@ export type Remote = ? Promise : unknown ) & { - [createEndpoint]: MessagePort; + [createEndpoint]: () => Promise; [releaseProxy]: () => void; };