Skip to content

Commit

Permalink
chore(types): remove unnecessary declaration of weakref (mobxjs#3791)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyraoul authored Nov 2, 2023
1 parent defba49 commit 764747a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/mobx-react/__tests__/finalizationRegistry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> {
constructor(object: T)
deref(): T | undefined
}

test("should not prevent GC of uncomitted components", async () => {
expect(typeof globalThis.FinalizationRegistry).toBe("function")

Expand Down

0 comments on commit 764747a

Please sign in to comment.