From 26339332a64e74653232be5768aa709298ae1f3a Mon Sep 17 00:00:00 2001 From: Fabrice DIDIERJEAN Date: Tue, 25 Jun 2019 16:47:17 +0200 Subject: [PATCH] allow multiple type for ApiReponse in typescript --- apisauce.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apisauce.d.ts b/apisauce.d.ts index 3817aa4..2d5db1a 100644 --- a/apisauce.d.ts +++ b/apisauce.d.ts @@ -55,7 +55,7 @@ export interface ApiOkResponse { config?: AxiosRequestConfig; duration?: number; } -export type ApiResponse = ApiErrorResponse | ApiOkResponse; +export type ApiResponse = ApiErrorResponse | ApiOkResponse; export type Monitor = (response: ApiResponse) => void; export type RequestTransform = (request: AxiosRequestConfig) => void; @@ -95,7 +95,7 @@ export interface ApisauceInstance { unlink: (url: string, params?: {}, axiosConfig?: AxiosRequestConfig) => Promise>; } -export function isCancel(value: any): boolean; +export function isCancel(value: any): boolean; export const CancelToken: CancelTokenStatic;