Change HistoryListenerParameter from type to interface

This commit is contained in:
Nelson Javier Novoa Tellez
2018-10-22 15:42:25 -05:00
parent 1340339ce9
commit 2b22bc81f4

View File

@@ -10,7 +10,10 @@ export type WindowLocation = Window["location"] & HLocation;
export type HistoryActionType = "PUSH" | "POP";
export type HistoryLocation = WindowLocation & { state?: any };
export type HistoryListenerParameter = { location: HistoryLocation, action: HistoryActionType };
export interface HistoryListenerParameter {
location: HistoryLocation;
action: HistoryActionType;
}
export type HistoryListener = (parameter: HistoryListenerParameter) => void;
export type HistoryUnsubscribe = () => void;