From 2b22bc81f45408e087bb6af6d74cda281ff3aaba Mon Sep 17 00:00:00 2001 From: Nelson Javier Novoa Tellez Date: Mon, 22 Oct 2018 15:42:25 -0500 Subject: [PATCH] Change HistoryListenerParameter from type to interface --- types/reach__router/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;