Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript support #1035

Open
miton18 opened this issue Jul 17, 2016 · 7 comments
Open

Typescript support #1035

miton18 opened this issue Jul 17, 2016 · 7 comments

Comments

@miton18
Copy link

miton18 commented Jul 17, 2016

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

@philcockfield
Copy link

+1 👍

@devdoomari
Copy link

devdoomari commented Dec 26, 2016

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

@nhhockeyplayer
Copy link

nhhockeyplayer commented May 18, 2018

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

@Hirse
Copy link

Hirse commented May 20, 2018

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

@rmlevangelio
Copy link

+1

@ali-habibzadeh
Copy link

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

@alexjball
Copy link

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

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

No branches or pull requests

8 participants