Closed ilikejames closed 1 year ago
A few years ago I had a quick attempt at adding types for this library. https://github.com/pillarjs/router/pull/76.
This looks over the http methods exposed from the methods library and exposes these as lowercase methods on the Router return object e.g. new Router().connect()
methods
Router
new Router().connect()
This does mean that @types/methods has to be added as a dependency.
@types/methods
dependency
I took some inspiration from PR-100 for the build steps.
A few years ago I had a quick attempt at adding types for this library. https://github.com/pillarjs/router/pull/76.
This looks over the http methods exposed from the
methods
library and exposes these as lowercase methods on theRouter
return object e.g.new Router().connect()
This does mean that
@types/methods
has to be added as adependency
.