-
Notifications
You must be signed in to change notification settings - Fork 1
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add .d.ts for TypeScript #21
Comments
Something like this? import * as dns from "dns";
import { EventEmitter } from "events";
import OriginalHttpAgent, { HttpsAgent as OriginalHttpsAgent } from "agentkeepalive";
declare interface PollingOptions {
interval?: number;
retries?: number;
}
declare class Poller extends EventEmitter {
constructor(options: PollingOptions): Poller;
start(): void;
stop(): void;
getLookup(): typeof dns.lookup;
}
declare class DnsPolling extends EventEmitter {
constructor(): DnsPolling;
getLookup(hostname: string): typeof dns.lookup;
stop(): void;
}
declare class HttpAgent extends OriginalHttpAgent {
}
declare class HttpsAgent extends OriginalHttpsAgent {
} |
This would be nice! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: