mayajs / router

Simple NodeJS server routing library created using Typescript
MIT License
0 stars 0 forks source link

❌ Error: Issue with ts linter on compile (using typescript) #19

Closed jpalala closed 3 years ago

jpalala commented 3 years ago

See https://gist.github.com/jpalala/e40d69d3b2e56f51e32aaa70c96307b2

The TSC / tslint is having trouble compiling on line 8:

// src/server.ts#L8
app.add([{
  path: '/',
  GET: () => 'Hello World!', //Line 8
}]);
mackignacio commented 3 years ago

@jpalala What version of @mayajs/router you are using?

jpalala commented 3 years ago

based on package-lock, its "version": "0.3.0",

mackignacio commented 3 years ago

Can you try npm i @mayajs/router@next and run it again.