diff --git a/types/reach__router/index.d.ts b/types/reach__router/index.d.ts index 65d3fb0658..60b1c6253e 100644 --- a/types/reach__router/index.d.ts +++ b/types/reach__router/index.d.ts @@ -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;