You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ProxyAgent constructor support timeout attribute which are not exposed in types.
Reproducible By
newProxyAgent({uri: 'http://proxy.example.com',proxyTls: {timeout: 1000,// Object literal may only specify known properties, and 'timeout' does not exist in type 'TlsOptions & { servername?: string; }'.ts(2322)}});
Expected Behavior
No errors
Additional context
ProxyAgent constructor pass options to buildConnector function which allow to pass timeout parameter:
Bug Description
ProxyAgent
constructor supporttimeout
attribute which are not exposed in types.Reproducible By
Expected Behavior
No errors
Additional context
ProxyAgent
constructor pass options tobuildConnector
function which allow to passtimeout
parameter:undici/lib/proxy-agent.js
Lines 37 to 38 in cd1387a
undici/lib/proxy-agent.js
Lines 70 to 71 in cd1387a
undici/lib/core/connect.js
Line 14 in cd1387a
Unfortunately type definition do not mention this attribute:
undici/types/proxy-agent.d.ts
Lines 22 to 23 in cd1387a
The text was updated successfully, but these errors were encountered: