From 018ef9fb6f5b07100d7cd9243731060b959057e8 Mon Sep 17 00:00:00 2001 From: Dancespile Date: Wed, 3 Jan 2018 21:20:42 +0100 Subject: [PATCH] add hash argument in the constructor (#22650) The argument hash was missed in the constructor (see more in https://github.com/krasimir/navigo) --- types/navigo/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/navigo/index.d.ts b/types/navigo/index.d.ts index 138d0c043f..3a277711a9 100644 --- a/types/navigo/index.d.ts +++ b/types/navigo/index.d.ts @@ -15,7 +15,7 @@ declare class Navigo { * @param root The main URL of your application. * @param useHash If useHash set to true then the router uses an old routing approach with hash in the URL. Navigo anyways falls back to this mode if there is no History API supported. */ - constructor(root?: string | null, useHash?: boolean); + constructor(root?: string | null, useHash?: boolean, hash?: string); on(location: string, handler: RouteHandler, hooks?: NavigoHooks): Navigo; on(location: RegExp, handler: (...parameters: string[]) => void, hooks?: NavigoHooks): Navigo;