add hash argument in the constructor (#22650)

The argument hash was missed in the constructor (see more in https://github.com/krasimir/navigo)
This commit is contained in:
Dancespile
2018-01-03 12:20:42 -08:00
committed by Mohamed Hegazy
parent ad3181849c
commit 018ef9fb6f
+1 -1
View File
@@ -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;