Skip to content

Commit d75792b

Browse files
surmamhofman
andauthored
Update src/comlink.ts
Co-authored-by: Mathieu Hofman <[email protected]>
1 parent 61c7153 commit d75792b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comlink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ function releaseEndpoint(ep: Endpoint) {
385385

386386
interface FinalizationRegistry<T> {
387387
new (cb: (heldValue: T) => void): FinalizationRegistry<T>;
388-
register(weakItem: any, heldValue: T, unregisterToken: any): void;
388+
register(weakItem: object, heldValue: T, unregisterToken?: object | undefined): void;
389389
}
390390
declare var FinalizationRegistry: FinalizationRegistry<Endpoint>;
391391

0 commit comments

Comments
 (0)