@types/agent-base
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -10,24 +10,24 @@ // Type definitions for agent-base 4.2 | ||
declare namespace Agent { | ||
type AgentCallback = ( | ||
req?: any, | ||
opts?: { | ||
secureEndpoint: boolean; | ||
} | ||
) => void; | ||
type AgentCallback = ( | ||
req?: any, | ||
opts?: { | ||
secureEndpoint: boolean; | ||
} | ||
) => void; | ||
interface AgentOptions { | ||
timeout?: number; | ||
host?: string; | ||
port?: number; | ||
[key: string]: any; | ||
} | ||
interface AgentOptions { | ||
timeout?: number; | ||
host?: string; | ||
port?: number; | ||
[key: string]: any; | ||
} | ||
interface Agent extends EventEmitter { | ||
_promisifiedCallback: boolean; | ||
timeout: number | null; | ||
options?: AgentOptions; | ||
callback: AgentCallback; | ||
addRequest: (req?: any, opts?: any) => void; | ||
freeSocket: (socket: any, opts: any) => void; | ||
} | ||
interface Agent extends EventEmitter { | ||
_promisifiedCallback: boolean; | ||
timeout: number | null; | ||
options?: AgentOptions; | ||
callback: AgentCallback; | ||
addRequest: (req?: any, opts?: any) => void; | ||
freeSocket: (socket: any, opts: any) => void; | ||
} | ||
} | ||
@@ -41,6 +41,6 @@ | ||
declare function Agent( | ||
callback: Agent.AgentCallback, | ||
opts?: Agent.AgentOptions | ||
callback: Agent.AgentCallback, | ||
opts?: Agent.AgentOptions | ||
): Agent.Agent; | ||
export = Agent; |
{ | ||
"name": "@types/agent-base", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "TypeScript definitions for agent-base", | ||
@@ -14,13 +14,14 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/agent-base" | ||
}, | ||
"scripts": {}, | ||
"dependencies": { | ||
"@types/events": "*", | ||
"@types/node": "*" | ||
}, | ||
"typesPublisherContentHash": "27d40a9ec3b0c7ad6d7b898e03adca3bfeecaae867fd83292a875d59d2eab545", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "d93f05b1fe3a073da02e8e85d85df962e7cd4a2b903b60a77b33704f4accf706", | ||
"typeScriptVersion": "3.0" | ||
} |
@@ -8,10 +8,10 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/agent-base | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/agent-base. | ||
Additional Details | ||
* Last updated: Thu, 02 Aug 2018 01:35:11 GMT | ||
* Dependencies: events, node | ||
### Additional Details | ||
* Last updated: Fri, 15 May 2020 04:08:41 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Christopher Quadflieg <https://github.com/Shinigami92>. | ||
These definitions were written by [Christopher Quadflieg](https://github.com/Shinigami92). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3648
1
- Removed@types/events@*
- Removed@types/events@3.0.3(transitive)