We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61c7153 commit d75792bCopy full SHA for d75792b
src/comlink.ts
@@ -385,7 +385,7 @@ function releaseEndpoint(ep: Endpoint) {
385
386
interface FinalizationRegistry<T> {
387
new (cb: (heldValue: T) => void): FinalizationRegistry<T>;
388
- register(weakItem: any, heldValue: T, unregisterToken: any): void;
+ register(weakItem: object, heldValue: T, unregisterToken?: object | undefined): void;
389
}
390
declare var FinalizationRegistry: FinalizationRegistry<Endpoint>;
391
0 commit comments