Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion types/http-proxy-agent/http-proxy-agent-tests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Agent = require('http-proxy-agent');
import Agent from 'http-proxy-agent';

// $ExpectType HttpProxyAgent
new Agent('url');
Expand Down
6 changes: 3 additions & 3 deletions types/http-proxy-agent/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// Type definitions for http-proxy-agent 2.0
// Type definitions for http-proxy-agent 2.1
// Project: https://github.com/TooTallNate/node-http-proxy-agent
// Definitions by: mrmlnc <https://github.com/mrmlnc>
// steprescott <https://github.com/steprescott>
// marikaner <https://github.com/marikaner>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node"/>

import { Agent } from 'http';
import { Url } from 'url';

declare class HttpProxyAgent extends Agent {
constructor(options: string | Url);

proxy: Url;
secureProxy: boolean;
}

export = HttpProxyAgent;
export default HttpProxyAgent;