Skip to content

Commit

Permalink
Restore the State export in the types
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed Nov 2, 2021
1 parent 792a8fa commit eb6ca11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/history/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ export type Search = string;
*/
export type Hash = string;

/**
* An object that is used to associate some arbitrary data with a location, but
* that does not appear in the URL path.
*
* @see https://github.com/ReactTraining/history/tree/master/docs/api-reference.md#location.state
*/
export type State = object | null;

/**
* A unique string associated with a location. May be used to safely store
* and retrieve data in some other storage API, like `localStorage`.
Expand Down

0 comments on commit eb6ca11

Please sign in to comment.