make History Query and LocationState any instead of object to avoid castings on every usage.

This commit is contained in:
Olmo del Corral
2017-02-06 07:49:17 +01:00
parent f4f0bef0e1
commit 36ca0f413a

View File

@@ -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