We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@davstack/store: v1.1.5 typescript: v5.4.4 zustand: v4.5.2
@davstack/store
v1.1.5
typescript
v5.4.4
zustand
v4.5.2
import { store } from "@davstack/store"; type GlobalStore = { user: { name: string; } | null; token: string | null; } const globalStore = store<GlobalStore>() .state({ user: null, token: null }) .actions(store => ({ setUser: (u: User) => { // store is 'any' here } }))
Despite providing typing for the store, all instances of store in actions, computed, effects, etc. are typed as any – all properties are also any
store
actions
computed
effects
any
The text was updated successfully, but these errors were encountered:
Nevermind! I must've done something wonky when trying this out last night. Recreating my snippet in my codebase provides the correct typings for now.
Sorry, something went wrong.
No branches or pull requests
@davstack/store
:v1.1.5
typescript
:v5.4.4
zustand
:v4.5.2
Despite providing typing for the store, all instances of
store
inactions
,computed
,effects
, etc. are typed asany
– all properties are alsoany
The text was updated successfully, but these errors were encountered: