http-client cannot customize #886
Unanswered
sytruong92
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to customize fetch to add interceptor but I not work. Can you help me
export interface ApiConfig<SecurityDataType = unknown> {
baseUrl?: string;
baseApiParams?: Omit<RequestParams, "baseUrl" | "cancelToken" | "signal">;
securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;
interceptors?: Interceptors;
customFetch?: typeof fetch;
}
Beta Was this translation helpful? Give feedback.
All reactions