SIGN IN SIGN UP
pmndrs / zustand UNCLAIMED

🐻 Bear necessities for state management in React

0 0 40 TypeScript

test(middlewareTypes): replace 'void' with 'expectTypeOf' for type assertions (#3352)

* test(middlewareTypes): replace 'void' with 'expectTypeOf' and 'expect' for type assertions

* test(middlewareTypes): replace deprecated 'toMatchTypeOf' with 'toHaveProperty'

* test(middlewareTypes): replace 'toBeNumber', 'toBeVoid', 'toBeBoolean' with 'toEqualTypeOf' for stricter type checking

* test(middlewareTypes): wrap 'setState', 'subscribe', 'persist.hasHydrated' with 'expectTypeOf' for type verification

* test(middlewareTypes): remove redundant 'expect(useBoundStore).toBeDefined()'

* style(middlewareTypes): format 'setState' type assertion

* test(middlewareTypes): replace 'toHaveProperty' with 'toExtend' for explicit type checking

* style(middlewareTypes): format type assertion
W
Wonsuk Choi committed
3cb547d5edbaad37abb5c99ef78a6a9f15a422b5
Parent: 003b0a7
Committed by GitHub <noreply@github.com> on 1/12/2026, 11:18:32 AM