mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
make History Query and LocationState any instead of object to avoid castings on every usage.
This commit is contained in:
4
history/v2/index.d.ts
vendored
4
history/v2/index.d.ts
vendored
@@ -75,10 +75,10 @@ export namespace History {
|
||||
export type LocationDescriptor = LocationDescriptorObject | Path;
|
||||
export type LocationKey = string;
|
||||
export type LocationListener = (location: Location) => void;
|
||||
export type LocationState = Object;
|
||||
export type LocationState = any;
|
||||
export type Path = string // Pathname + QueryString;
|
||||
export type Pathname = string;
|
||||
export type Query = Object;
|
||||
export type Query = any;
|
||||
export type QueryString = string;
|
||||
export type Search = string;
|
||||
export type TransitionHook = (location: Location, callback: (result: any) => void) => any
|
||||
|
||||
Reference in New Issue
Block a user