mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
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:
committed by
Mohamed Hegazy
parent
ad3181849c
commit
018ef9fb6f
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user