DefinitelyTyped/types/pathjs/pathjs-tests.ts
Nathan Shively-Sanders 95dce3019d
Fix relative paths in tests, part 2 (#40423)
* Fix relative paths in tests, part 2

* revert lodash change
2019-11-15 14:14:18 -08:00

34 lines
378 B
TypeScript

import {Path} from "pathjs";
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);