GoogleChromeLabs / GoogleChromeLabs/comlink

Typescript Remote object wrapping not recursively applied

Open
#484 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
12.8k
Forks
435
PR merge metrics
No merged PRs in 30d

Description

The following code does not appear to compile using `comlink@4.3.0`
```typescript
interface F{ a : [] }
declare const b: Remote
b.a.length
```
It appears `b.a` resolves to `Promise<[]>` instead of something like `Remote<[]>`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.