From 62f17ca2ba005a74762f67b004ebcc7b612425ac Mon Sep 17 00:00:00 2001 From: Ahad Birang Date: Wed, 3 Feb 2021 16:30:31 +0330 Subject: [PATCH] fix(types): add missing type for `create()` (#475) --- types/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index 615eddc..3b4f830 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -22,6 +22,8 @@ interface NuxtAxiosInstance extends AxiosStatic { onError(callback: (error: AxiosError) => void): void onRequestError(callback: (error: AxiosError) => void): void onResponseError(callback: (error: AxiosError) => void): void + + create(options?: AxiosRequestConfig): NuxtAxiosInstance } interface AxiosOptions {