Closed
Description
Since this package is already written in TypeScript, why not include TypeScript declaration in the npm package?
You just need to add the following lines to tsconfig.json
{
"compilerOptions": {
"declaration": true
}
}
and packacge.json
{
"types": "./dist/index.d.ts"
}
You can keep the declaration up to date instead of requiring to update @types/http-proxy-middleware
separately.