GoogleChromeLabs / GoogleChromeLabs/comlink

Missing types for `Comlink.finalizer` props on objects.

Open
#631 4 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

There is no TypeScript inference for the `Comlink.finalizer` prop, and it will always throw an error.

Additionally, it's not clear what a "exposed object" is, and on which end it should be called.

> If an exposed object has a property `[Comlink.finalizer]`, the property will be invoked as a function when the proxy is being released.

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.