Skip to content

Commit e61a893

Browse files
fix(types): fix autocomplete for adapter config (#6855)
Co-authored-by: Dmitriy Mozgovoy <[email protected]>
1 parent 6c5d4cd commit e61a893

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

index.d.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ declare namespace axios {
359359

360360
type Milliseconds = number;
361361

362-
type AxiosAdapterName = 'fetch' | 'xhr' | 'http' | string;
362+
type AxiosAdapterName = 'fetch' | 'xhr' | 'http' | (string & {});
363363

364364
type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName;
365365

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export interface AxiosProgressEvent {
302302

303303
type Milliseconds = number;
304304

305-
type AxiosAdapterName = 'fetch' | 'xhr' | 'http' | string;
305+
type AxiosAdapterName = 'fetch' | 'xhr' | 'http' | (string & {});
306306

307307
type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName;
308308

0 commit comments

Comments
 (0)