Closed sytruong92 closed 3 months ago
I want to customize fetch to add interceptor but I not work. Can you help me
export interface ApiConfig { baseUrl?: string; baseApiParams?: Omit<RequestParams, "baseUrl" | "cancelToken" | "signal">; securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void; interceptors?: Interceptors; customFetch?: typeof fetch; }
I want to customize fetch to add interceptor but I not work. Can you help me
export interface ApiConfig {
baseUrl?: string;
baseApiParams?: Omit<RequestParams, "baseUrl" | "cancelToken" | "signal">;
securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;
interceptors?: Interceptors;
customFetch?: typeof fetch;
}