mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
* fix typo in jsdoc * change State type https://github.com/pmndrs/zustand/pull/1144#issuecomment-1220059294
This commit is contained in:
parent
abb43c4a02
commit
49947c9659
@ -108,9 +108,9 @@ export default createStore
|
||||
// ---------------------------------------------------------
|
||||
|
||||
/**
|
||||
* @deprecated Use `object` instead of `State`
|
||||
* @deprecated Use `unknown` instead of `State`
|
||||
*/
|
||||
export type State = object
|
||||
export type State = unknown
|
||||
|
||||
/**
|
||||
* @deprecated Use `Partial<T> | ((s: T) => Partial<T>)` instead of `PartialState<T>`
|
||||
@ -164,6 +164,6 @@ export type SetState<T extends State> = {
|
||||
export type GetState<T extends State> = () => T
|
||||
|
||||
/**
|
||||
* @deprecated Use `StoreApi<T>['destroy']` instead of `GetState<T>`.
|
||||
* @deprecated Use `StoreApi<T>['destroy']` instead of `Destroy`.
|
||||
*/
|
||||
export type Destroy = () => void
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user