mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
routie: fixed tests
This commit is contained in:
parent
b56ddda6d9
commit
e355ec2bb9
@ -25,7 +25,7 @@ routie("users/bob"); // window.location.hash will be #users/bob
|
||||
|
||||
// Routie also supports regex style routes, so you can do advanced routing like this:
|
||||
|
||||
routie("users/:name", function (name) {
|
||||
routie("users/:name", function (name: string) {
|
||||
// name == "bob";
|
||||
});
|
||||
|
||||
@ -33,7 +33,7 @@ routie("users/bob");
|
||||
|
||||
// Optional params:
|
||||
|
||||
routie("users/?:name", function (name) {
|
||||
routie("users/?:name", function (name: string) {
|
||||
//name == undefined
|
||||
//then
|
||||
//name == bob
|
||||
|
||||
Loading…
Reference in New Issue
Block a user