Skip to content
Merged
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
AgentOptions as SecureAgentOptions,
RequestOptions as SecureRequestOptions
} from 'https'
import { Pool, ProxyAgent } from 'undici'
import { Pool, ProxyAgent, Dispatcher } from 'undici'

declare module 'fastify' {
interface FastifyReply {
Expand Down Expand Up @@ -104,7 +104,7 @@ declare namespace fastifyReplyFrom {
disableCache?: boolean;
http?: HttpOptions;
http2?: Http2Options | boolean;
undici?: Pool.Options & { proxy?: string | URL | ProxyAgent.Options };
undici?: Pool.Options & { proxy?: string | URL | ProxyAgent.Options } | { request: Dispatcher['request'] };
contentTypesToEncode?: string[];
retryMethods?: (HTTPMethods | 'TRACE')[];
maxRetriesOn503?: number;
Expand Down
Loading