feat(Rest): expose https.Agent options (#6177)

Co-authored-by: Antonio Román <kyradiscord@gmail.com>
This commit is contained in:
Shino
2021-08-17 16:45:32 -04:00
committed by GitHub
parent 16493e65fd
commit 5eb3553fd1
3 changed files with 14 additions and 1 deletions

2
typings/index.d.ts vendored
View File

@@ -47,6 +47,7 @@ import {
Snowflake,
} from 'discord-api-types/v9';
import { EventEmitter } from 'events';
import { AgentOptions } from 'https';
import { Stream } from 'stream';
import { MessagePort, Worker } from 'worker_threads';
import * as WebSocket from 'ws';
@@ -3893,6 +3894,7 @@ export interface HTTPErrorData {
}
export interface HTTPOptions {
agent?: Omit<AgentOptions, 'keepAlive'>;
api?: string;
version?: number;
host?: string;