Skip to content

Commit

Permalink
fix(types): typo in jsdoc and follow-up #1144 (#1199)
Browse files Browse the repository at this point in the history
* fix typo in jsdoc

* change State type #1144 (comment)
  • Loading branch information
devanshj authored Aug 18, 2022
1 parent abb43c4 commit 49947c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vanilla.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>`
Expand Down Expand Up @@ -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

0 comments on commit 49947c9

Please sign in to comment.