DefinitelyTyped/types/pathjs/pathjs-tests.ts
2019-02-05 15:14:45 +01:00

34 lines
379 B
TypeScript

import {Path} from "./index";
Path.map("/test/:id")
.to(()=>{ });
Path.listen();
//History
Path.history.listen(() =>{
});
var initial = Path.history.initial;
//Core
var route = new Path.core.route("/test/:id");
function test1() {
}
route.enter(test1);
function test2() {
}
var funs = new Array<Function>();
funs.push(test1);
funs.push(test2);
route.enter(funs);