mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Change HistoryListenerParameter from type to interface
This commit is contained in:
5
types/reach__router/index.d.ts
vendored
5
types/reach__router/index.d.ts
vendored
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user