Skip to content

Commit

Permalink
Revert type override for Undici response data
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshMock committed Jan 21, 2025
1 parent ba17a95 commit 1f911ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/connection/UndiciConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import BaseConnection, {
isCaFingerprintMatch,
isBinary
} from './BaseConnection'
import { Pool, buildConnector } from 'undici'
import { Pool, buildConnector, Dispatcher } from 'undici'
import {
ConfigurationError,
RequestAbortedError,
Expand Down Expand Up @@ -163,7 +163,8 @@ export default class Connection extends BaseConnection {
debug('Starting a new request', params)
let response
try {
response = await this.pool.request(requestParams)
// @ts-expect-error
response = (await this.pool.request(requestParams)) as Dispatcher.ResponseData
if (timeoutId != null) clearTimeout(timeoutId)
} catch (err: any) {
if (timeoutId != null) clearTimeout(timeoutId)
Expand Down

0 comments on commit 1f911ce

Please sign in to comment.