Typescript support
Is it possible to add Typescript declarations ? (node-http-proxy.d.ts)
+1 👍
how about referencing https://github.com/typed-contrib/node-http-proxy to get started?
C:\apache-tomcat-9.0.0.M17\webapps\ROOT\api>npm i @types/node-http-proxy -D
npm ERR! code E404
npm ERR! 404 Not Found: @types/node-http-proxy@latest
@nhhockeyplayer try npm i @types/http-proxy, that is the name according to the package.json.
+1
Wanted to use it but no. Will check back in few months when you have ts
Note that you need to install http-proxy, not node-http-proxy, for the @types/http-proxy package to work correctly.
npm i http-proxy
npm i -D @types/http-proxy
import { createProxyServer } from 'http-proxy';