Skip to content

Commit eb6ca11

Browse files
committed
Restore the State export in the types
1 parent 792a8fa commit eb6ca11

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/history/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ export type Search = string;
4848
*/
4949
export type Hash = string;
5050

51+
/**
52+
* An object that is used to associate some arbitrary data with a location, but
53+
* that does not appear in the URL path.
54+
*
55+
* @see https://github.com/ReactTraining/history/tree/master/docs/api-reference.md#location.state
56+
*/
57+
export type State = object | null;
58+
5159
/**
5260
* A unique string associated with a location. May be used to safely store
5361
* and retrieve data in some other storage API, like `localStorage`.

0 commit comments

Comments
 (0)