Skip to content

Conversation

@ilikejames
Copy link

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()

This does mean that @types/methods has to be added as a dependency, but it means only the single package will need to be updated as methods itself is updated.

I took some inspiration from PR-100 for the build steps.

@ilikejames ilikejames force-pushed the add-type-definition branch from 0eec99e to 1df0908 Compare March 28, 2023 15:36
@ilikejames ilikejames force-pushed the add-type-definition branch from 1df0908 to 45aa395 Compare March 28, 2023 15:38
@ilikejames ilikejames closed this Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant