node-http-proxy icon indicating copy to clipboard operation
node-http-proxy copied to clipboard

Typescript support

Open miton18 opened this issue 9 years ago • 7 comments

Is it possible to add Typescript declarations ? (node-http-proxy.d.ts)

miton18 avatar Jul 17 '16 12:07 miton18

+1 👍

philcockfield avatar Oct 14 '16 21:10 philcockfield

how about referencing https://github.com/typed-contrib/node-http-proxy to get started?

devdoomari avatar Dec 26 '16 04:12 devdoomari

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 avatar May 18 '18 11:05 nhhockeyplayer

@nhhockeyplayer try npm i @types/http-proxy, that is the name according to the package.json.

Hirse avatar May 20 '18 19:05 Hirse

+1

rmlevangelio avatar Nov 07 '18 12:11 rmlevangelio

Wanted to use it but no. Will check back in few months when you have ts

ali-habibzadeh avatar Apr 01 '21 14:04 ali-habibzadeh

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';

alexjball avatar Jan 15 '24 21:01 alexjball