declare routes in sammy js in typescript
问题 I would like to use the definitely typed sammyjs file in conjunction with typescript to declare a route on my page Javascript for the declaration would look like this --> Sammy(function () { this.get('#:foobar', function () { //doStuff var baz = this.params.foobar; }); this.get('', function () { this.app.runRoute('get', '#All') }); }).run(); So far I have this. var app: Sammy.Application = Sammy(); app.get('#:foobar', () => { //doStuff var baz = this.params.foobar; }); Obviously params is not