File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -324,11 +324,7 @@ async function closureSoICanUseAwait() {
324
324
proxy2 . registerProvider (
325
325
// Async callback
326
326
Comlink . proxy ( async ( { textDocument } : Params ) => {
327
- // Disabling this test here for now as there seems to be a bug with the
328
- // TypeScript compiler. It claims that this function does not return
329
- // a proxy-marked value.
330
- // @ts -expect-error
331
- return Comlink . proxy ( {
327
+ const subscribable = Comlink . proxy ( {
332
328
subscribe (
333
329
subscriber : Comlink . Remote < Subscriber < string > & Comlink . ProxyMarked >
334
330
) : Unsubscribable & Comlink . ProxyMarked {
@@ -349,6 +345,7 @@ async function closureSoICanUseAwait() {
349
345
return Comlink . proxy ( { unsubscribe ( ) { } } ) ;
350
346
} ,
351
347
} ) ;
348
+ return subscribable ;
352
349
} )
353
350
) ;
354
351
}
You can’t perform that action at this time.
0 commit comments