Distribute TypeScript types with koa package
See original GitHub issueIt’d be really convenient if the Koa types were distributed with the koa package rather than requiring a separate install of @types/koa
.
I see that requests for a TypeScript rewrite have been closed, but could the types at least be pulled in? It might help keep them in sync as well.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:23
- Comments:8 (3 by maintainers)
Top Results From Across the Web
TypeScript with Koa: Part — 2. Type Definitions ... - Medium
To parse request body, we're going to use the koa-bodyparser package which can handle a number of content types for us. If we...
Read more >@types/koa - npm
Start using @types/koa in your project by running `npm i @types/koa`. ... TypeScript icon, indicating that this package has built-in type ...
Read more >Documentation - Publishing - TypeScript
Don't combine it with yours, keep each in their own file. · Don't copy the declarations in your package either. · Do depend...
Read more >How to publish Deno modules to NPM
If you aren't familiar with oak, it is a koa inspired HTTP ... Writes out the package as a set of ESM, CommonJS...
Read more >Using Docker for local TypeScript development - Inviqa
npm install -D typescript @types/koa ... First, we'll add a couple of scripts to our package.json to make things a little simpler.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
sometimes i don’t get it, vscode is able to follow js and understand jsdoc without having separate type definition files. I most often see this @types as unnecessary
@jimmywarting editor or TypeScript config doesn’t get published or used when the package is installed by users. You don’t just want type safety for the source code of the package you are authoring, but also for your users consuming the published package.