From e61a8934d8f94dd429a2f309b48c67307c700df0 Mon Sep 17 00:00:00 2001 From: FatahChan Date: Sat, 19 Apr 2025 17:54:33 +0200 Subject: [PATCH] fix(types): fix autocomplete for adapter config (#6855) Co-authored-by: Dmitriy Mozgovoy --- index.d.cts | 2 +- index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.cts b/index.d.cts index 482dc89..b1911ca 100644 --- a/index.d.cts +++ b/index.d.cts @@ -359,7 +359,7 @@ declare namespace axios { type Milliseconds = number; - type AxiosAdapterName = 'fetch' | 'xhr' | 'http' | string; + type AxiosAdapterName = 'fetch' | 'xhr' | 'http' | (string & {}); type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName; diff --git a/index.d.ts b/index.d.ts index 7989802..840fdcb 100644 --- a/index.d.ts +++ b/index.d.ts @@ -302,7 +302,7 @@ export interface AxiosProgressEvent { type Milliseconds = number; -type AxiosAdapterName = 'fetch' | 'xhr' | 'http' | string; +type AxiosAdapterName = 'fetch' | 'xhr' | 'http' | (string & {}); type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName;