From 764747af3c0064b3a5c1155b8587cd1b04e49747 Mon Sep 17 00:00:00 2001 From: Antoine Eskaros Date: Thu, 2 Nov 2023 23:42:42 +1100 Subject: [PATCH] chore(types): remove unnecessary declaration of weakref (#3791) --- packages/mobx-react/__tests__/finalizationRegistry.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/mobx-react/__tests__/finalizationRegistry.tsx b/packages/mobx-react/__tests__/finalizationRegistry.tsx index 855e90eb9..852a4cced 100644 --- a/packages/mobx-react/__tests__/finalizationRegistry.tsx +++ b/packages/mobx-react/__tests__/finalizationRegistry.tsx @@ -8,12 +8,6 @@ import { observer } from "../src" afterEach(cleanup) -// TODO remove once https://github.com/mobxjs/mobx/pull/3620 is merged. -declare class WeakRef { - constructor(object: T) - deref(): T | undefined -} - test("should not prevent GC of uncomitted components", async () => { expect(typeof globalThis.FinalizationRegistry).toBe("function")