@povio/ui 2.1.20 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/Accordion.js +32 -0
- package/dist/AccordionItem.js +62 -0
- package/dist/Alert.js +1 -1
- package/dist/ArrowDropDown.js +1 -1
- package/dist/ArrowDropUp.js +1 -1
- package/dist/ArrowLeft.js +1 -1
- package/dist/ArrowRight.js +1 -1
- package/dist/BottomSheet.js +4 -4
- package/dist/Breadcrumbs.js +111 -0
- package/dist/Button.js +1 -1
- package/dist/ButtonContent.js +1 -1
- package/dist/Calendar.js +1 -1
- package/dist/Check.js +1 -1
- package/dist/CheckCircle.js +1 -1
- package/dist/CheckContent.js +1 -1
- package/dist/ChevronDown.js +1 -1
- package/dist/ChevronUp.js +1 -1
- package/dist/Clock.js +1 -1
- package/dist/ColorPickerDropdown.js +1 -1
- package/dist/DatePickerInput.js +1 -1
- package/dist/DateRangePicker.js +2 -2
- package/dist/DateTime.js +2 -4
- package/dist/{Drag.js → DragIndicator.js} +2 -2
- package/dist/File.js +1 -1
- package/dist/FileUpload.js +1 -1
- package/dist/Home.js +13 -0
- package/dist/Info.js +2 -2
- package/dist/InputContent.js +1 -1
- package/dist/InputUploadContent.js +1 -1
- package/dist/Menu.js +1 -1
- package/dist/MenuDesktop.js +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/MenuMobile.js +2 -2
- package/dist/MenuPopover.js +2 -2
- package/dist/NumberInput.js +1 -1
- package/dist/PasswordInput.js +3 -3
- package/dist/Segment.js +1 -1
- package/dist/SelectDesktop.js +1 -1
- package/dist/SelectInput.js +1 -1
- package/dist/SelectListBox.js +2 -2
- package/dist/SelectListBoxItem.js +2 -2
- package/dist/SelectListBoxItemSelectAll.js +1 -1
- package/dist/SelectListBoxLoadingItem.js +1 -1
- package/dist/SelectMobile.js +3 -3
- package/dist/Stepper.js +32 -0
- package/dist/StepperItem.js +52 -0
- package/dist/StepperSeparator.js +10 -0
- package/dist/Table.js +2 -2
- package/dist/TextArea.js +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/TimePickerInput.js +1 -1
- package/dist/Toast.js +1 -1
- package/dist/Tooltip.js +2 -2
- package/dist/Typography.js +1 -1
- package/dist/Visibility.js +13 -0
- package/dist/VisibilityOff.js +13 -0
- package/dist/YearPicker.js +1 -1
- package/dist/accordion.cva.js +97 -0
- package/dist/assets/icons/{ViewOff.d.ts → Account.d.ts} +1 -1
- package/dist/assets/icons/Board.d.ts +2 -0
- package/dist/assets/icons/DragIndicator.d.ts +2 -0
- package/dist/assets/icons/{Drag.d.ts → Edit.d.ts} +1 -1
- package/dist/assets/icons/Emoji.d.ts +2 -0
- package/dist/assets/icons/{View.d.ts → Grid.d.ts} +1 -1
- package/dist/assets/icons/Home.d.ts +2 -0
- package/dist/assets/icons/Image.d.ts +2 -0
- package/dist/assets/icons/ImageError.d.ts +2 -0
- package/dist/assets/icons/Loader.d.ts +2 -0
- package/dist/assets/icons/MapPin.d.ts +2 -0
- package/dist/assets/icons/Minus.d.ts +2 -0
- package/dist/assets/icons/MoreHoriz.d.ts +2 -0
- package/dist/assets/icons/Pause.d.ts +2 -0
- package/dist/assets/icons/Plus.d.ts +2 -0
- package/dist/assets/icons/Retry.d.ts +2 -0
- package/dist/assets/icons/Search.d.ts +2 -0
- package/dist/assets/icons/Share.d.ts +2 -0
- package/dist/assets/icons/Slash.d.ts +2 -0
- package/dist/assets/icons/Trash.d.ts +2 -0
- package/dist/assets/icons/User.d.ts +2 -0
- package/dist/assets/icons/Visibility.d.ts +2 -0
- package/dist/assets/icons/VisibilityOff.d.ts +2 -0
- package/dist/assets/icons/WarningOutlined.d.ts +2 -0
- package/dist/breadcrumbs.cva.js +22 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +15 -0
- package/dist/components/Breadcrumbs/breadcrumbs.cva.d.ts +19 -0
- package/dist/components/Menu/Menu.d.ts +2 -2
- package/dist/components/inputs/File/fileUpload.types.d.ts +1 -1
- package/dist/components/inputs/Inputs/InputItem.d.ts +1 -1
- package/dist/components/inputs/shared/input.cva.d.ts +2 -2
- package/dist/components/inputs/shared/label.cva.d.ts +2 -2
- package/dist/components/navigation/Accordion/Accordion.d.ts +3 -0
- package/dist/components/navigation/Accordion/AccordionItem.d.ts +2 -0
- package/dist/components/navigation/Accordion/accordion.cva.d.ts +45 -0
- package/dist/components/navigation/Accordion/accordion.types.d.ts +52 -0
- package/dist/components/navigation/Stepper/Stepper.d.ts +2 -0
- package/dist/components/navigation/Stepper/StepperItem.d.ts +2 -0
- package/dist/components/navigation/Stepper/StepperSeparator.d.ts +5 -0
- package/dist/components/navigation/Stepper/stepper.cva.d.ts +37 -0
- package/dist/components/navigation/Stepper/stepper.types.d.ts +41 -0
- package/dist/config/i18n.d.ts +0 -15
- package/dist/config/uiStyle.context.d.ts +31 -0
- package/dist/index.d.ts +13 -7
- package/dist/index.js +11 -9
- package/dist/input.cva.js +30 -30
- package/dist/label.cva.js +1 -1
- package/dist/menu.cva.js +2 -3
- package/dist/pillButton.cva.js +1 -1
- package/dist/radio.cva.js +0 -10
- package/dist/stepper.cva.js +93 -0
- package/dist/tag.cva.js +1 -1
- package/dist/tooltip.cva.js +1 -1
- package/dist/translation.js +0 -8
- package/dist/translation2.js +0 -7
- package/dist/types/error-handling.d.ts +6 -0
- package/dist/types/react-query.d.ts +1 -1
- package/dist/useSelectItems.js +1 -1
- package/package.json +2 -3
- package/dist/AclGuard.js +0 -12
- package/dist/AuthGuard.js +0 -22
- package/dist/Can.js +0 -13
- package/dist/View.js +0 -13
- package/dist/ViewOff.js +0 -13
- package/dist/ability.context.js +0 -35
- package/dist/auth.context.js +0 -37
- package/dist/auth.d.ts +0 -6
- package/dist/auth.js +0 -6
- package/dist/error-handling.js +0 -99
- package/dist/rest-interceptor.js +0 -22
- package/dist/utils/vendor/acl/AclGuard.d.ts +0 -8
- package/dist/utils/vendor/acl/Can.d.ts +0 -9
- package/dist/utils/vendor/acl/ability.context.d.ts +0 -15
- package/dist/utils/vendor/acl/appAbility.types.d.ts +0 -3
- package/dist/utils/vendor/auth/AuthGuard.d.ts +0 -6
- package/dist/utils/vendor/auth/auth.context.d.ts +0 -22
- package/dist/utils/vendor/error-handling.d.ts +0 -21
- package/dist/utils/vendor/rest-client.types.d.ts +0 -23
- package/dist/utils/vendor/rest-interceptor.d.ts +0 -8
package/dist/error-handling.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { ns } from "./i18n.js";
|
|
2
|
-
import { RestUtils } from "./rest.utils.js";
|
|
3
|
-
import { logger } from "./logger.js";
|
|
4
|
-
import axios from "axios";
|
|
5
|
-
import { z } from "zod";
|
|
6
|
-
import i18next from "i18next";
|
|
7
|
-
var ApplicationException = class extends Error {
|
|
8
|
-
constructor(message, code, serverMessage) {
|
|
9
|
-
super(message);
|
|
10
|
-
this.serverMessage = null;
|
|
11
|
-
this.code = code;
|
|
12
|
-
this.serverMessage = serverMessage;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
var ErrorHandler = class {
|
|
16
|
-
constructor(entries) {
|
|
17
|
-
this.entries = [];
|
|
18
|
-
const dataValidationError = {
|
|
19
|
-
code: "DATA_VALIDATION_ERROR",
|
|
20
|
-
condition: (e) => {
|
|
21
|
-
return e instanceof z.ZodError;
|
|
22
|
-
},
|
|
23
|
-
getMessage: () => i18next.t(($) => $.sharedErrors.dataValidation, { ns: "ui" })
|
|
24
|
-
};
|
|
25
|
-
const internalError = {
|
|
26
|
-
code: "INTERNAL_ERROR",
|
|
27
|
-
condition: (e) => {
|
|
28
|
-
if (axios.isAxiosError(e)) return e.response?.status != null && e.response.status >= 500 && e.response.status < 600;
|
|
29
|
-
return false;
|
|
30
|
-
},
|
|
31
|
-
getMessage: () => i18next.t(($) => $.sharedErrors.internalError, { ns: "ui" })
|
|
32
|
-
};
|
|
33
|
-
const networkError = {
|
|
34
|
-
code: "NETWORK_ERROR",
|
|
35
|
-
condition: (e) => {
|
|
36
|
-
if (axios.isAxiosError(e)) return e.code === "ERR_NETWORK";
|
|
37
|
-
return false;
|
|
38
|
-
},
|
|
39
|
-
getMessage: () => i18next.t(($) => $.sharedErrors.networkError, { ns: "ui" })
|
|
40
|
-
};
|
|
41
|
-
const canceledError = {
|
|
42
|
-
code: "CANCELED_ERROR",
|
|
43
|
-
condition: (e) => {
|
|
44
|
-
if (axios.isCancel(e)) return true;
|
|
45
|
-
if (axios.isAxiosError(e) && e.code === "ECONNABORTED") return true;
|
|
46
|
-
return false;
|
|
47
|
-
},
|
|
48
|
-
getMessage: () => i18next.t(($) => $.sharedErrors.canceledError, { ns: "ui" })
|
|
49
|
-
};
|
|
50
|
-
const unknownError = {
|
|
51
|
-
code: "UNKNOWN_ERROR",
|
|
52
|
-
condition: () => true,
|
|
53
|
-
getMessage: (e) => {
|
|
54
|
-
if (axios.isAxiosError(e) && e.response?.data?.code) return i18next.t(($) => $.sharedErrors.unknownErrorWithCode, {
|
|
55
|
-
ns: "ui",
|
|
56
|
-
code: e.response.data.code
|
|
57
|
-
});
|
|
58
|
-
return i18next.t(($) => $.sharedErrors.unknownError, { ns: "ui" });
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
this.entries = [
|
|
62
|
-
...entries,
|
|
63
|
-
dataValidationError,
|
|
64
|
-
internalError,
|
|
65
|
-
networkError,
|
|
66
|
-
canceledError,
|
|
67
|
-
unknownError
|
|
68
|
-
];
|
|
69
|
-
}
|
|
70
|
-
rethrowError(error) {
|
|
71
|
-
logger.error(error);
|
|
72
|
-
const errorEntry = this.entries.find((entry) => entry.condition(error ?? {}));
|
|
73
|
-
const serverMessage = RestUtils.extractServerErrorMessage(error);
|
|
74
|
-
throw new ApplicationException(errorEntry.getMessage(error), errorEntry.code, serverMessage);
|
|
75
|
-
}
|
|
76
|
-
getError(error) {
|
|
77
|
-
if (error instanceof ApplicationException) return error;
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
getErrorCode(error) {
|
|
81
|
-
if (error instanceof ApplicationException) return error.code;
|
|
82
|
-
return null;
|
|
83
|
-
}
|
|
84
|
-
static getErrorMessage(error, fallbackToUnknown = true) {
|
|
85
|
-
if (typeof error === "string") return error;
|
|
86
|
-
if (error instanceof Error) return error.message;
|
|
87
|
-
if (error instanceof ApplicationException) return error.message;
|
|
88
|
-
if (fallbackToUnknown) {
|
|
89
|
-
if (error && typeof error === "object" && "code" in error) return i18next.t(($) => $.sharedErrors.unknownErrorWithCode, {
|
|
90
|
-
ns: "ui",
|
|
91
|
-
code: error.code
|
|
92
|
-
});
|
|
93
|
-
return i18next.t(($) => $.sharedErrors.unknownError, { ns: "ui" });
|
|
94
|
-
}
|
|
95
|
-
return null;
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
const SharedErrorHandler = new ErrorHandler([]);
|
|
99
|
-
export { ApplicationException, ErrorHandler, SharedErrorHandler };
|
package/dist/rest-interceptor.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var RestInterceptor = class {
|
|
2
|
-
constructor(applyInterceptor) {
|
|
3
|
-
this.applyInterceptor = applyInterceptor;
|
|
4
|
-
this.interceptorIdMap = [];
|
|
5
|
-
}
|
|
6
|
-
addInterceptor(client, ...args) {
|
|
7
|
-
this.removeInterceptor(client);
|
|
8
|
-
const interceptorId = this.applyInterceptor(client, ...args);
|
|
9
|
-
this.interceptorIdMap.push({
|
|
10
|
-
client,
|
|
11
|
-
interceptorId
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
removeInterceptor(client) {
|
|
15
|
-
const interceptorId = this.interceptorIdMap.find((i) => i.client === client)?.interceptorId;
|
|
16
|
-
if (interceptorId != null) {
|
|
17
|
-
client.interceptors.request.eject(interceptorId);
|
|
18
|
-
this.interceptorIdMap = this.interceptorIdMap.filter((i) => i.client !== client);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
export { RestInterceptor };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { AppAbilities } from './appAbility.types';
|
|
3
|
-
interface AclGuardProps<TAppAbilities extends AppAbilities = AppAbilities> {
|
|
4
|
-
canUse: TAppAbilities;
|
|
5
|
-
redirectTo?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const createAclGuard: <TAppAbilities extends AppAbilities = AppAbilities>() => ({ canUse, redirectTo, children }: PropsWithChildren<AclGuardProps<TAppAbilities>>) => import('react').ReactNode;
|
|
8
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AbilityTuple, PureAbility } from '@casl/ability';
|
|
2
|
-
import { BoundCanProps } from '@casl/react';
|
|
3
|
-
import { AppAbilities } from './appAbility.types';
|
|
4
|
-
type CanAbility = PureAbility<AbilityTuple<AppAbilities[0], AppAbilities[1]>>;
|
|
5
|
-
type CanProps<TAppAbilities extends AppAbilities = AppAbilities> = {
|
|
6
|
-
use: TAppAbilities;
|
|
7
|
-
} & Omit<BoundCanProps<CanAbility>, "do" | "I" | "on" | "a" | "an" | "this">;
|
|
8
|
-
export declare const Can: <TAppAbilities extends AppAbilities = AppAbilities>({ use, ...props }: CanProps<TAppAbilities>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { PureAbility, RawRuleOf } from '@casl/ability';
|
|
2
|
-
import { PackRule } from '@casl/ability/extra';
|
|
3
|
-
import { PropsWithChildren } from 'react';
|
|
4
|
-
import { AppAbilities, AppAbility } from './appAbility.types';
|
|
5
|
-
export declare namespace AbilityContext {
|
|
6
|
-
export const Consumer: import("react").Consumer<AppAbility>;
|
|
7
|
-
interface ProviderProps {
|
|
8
|
-
user?: {
|
|
9
|
-
aclRules?: PackRule<RawRuleOf<AppAbility>>[];
|
|
10
|
-
} | null;
|
|
11
|
-
}
|
|
12
|
-
export const Provider: ({ children }: PropsWithChildren<ProviderProps>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export const useAbility: <TAppAbilities extends AppAbilities = AppAbilities>() => PureAbility<TAppAbilities>;
|
|
14
|
-
export {};
|
|
15
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
export interface AuthGuardProps {
|
|
3
|
-
type: "public-only" | "private";
|
|
4
|
-
redirectTo?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const AuthGuard: ({ type, redirectTo, children }: PropsWithChildren<AuthGuardProps>) => import('react').ReactNode;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
-
export declare namespace AuthContext {
|
|
3
|
-
export interface Routes {
|
|
4
|
-
authenticated?: string;
|
|
5
|
-
unauthenticated?: string;
|
|
6
|
-
}
|
|
7
|
-
interface Type<TUser = unknown> {
|
|
8
|
-
isAuthenticated: boolean;
|
|
9
|
-
isInitializing: boolean;
|
|
10
|
-
logout: () => void;
|
|
11
|
-
updateTokens?: (accessToken: string | null, refreshToken?: string | null) => void;
|
|
12
|
-
accessToken?: string | null;
|
|
13
|
-
user?: TUser | null;
|
|
14
|
-
userPromise?: () => Promise<TUser | null>;
|
|
15
|
-
routes?: Routes;
|
|
16
|
-
loadingState?: ReactNode;
|
|
17
|
-
}
|
|
18
|
-
type ProviderProps<TUser = unknown> = Type<TUser>;
|
|
19
|
-
export const Provider: <TUser>({ isAuthenticated, isInitializing, logout, updateTokens, accessToken, user, userPromise, routes, loadingState, children, }: PropsWithChildren<ProviderProps<TUser>>) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export const useAuth: <TUser>() => Type<TUser>;
|
|
21
|
-
export {};
|
|
22
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type GeneralErrorCodes = "DATA_VALIDATION_ERROR" | "NETWORK_ERROR" | "CANCELED_ERROR" | "INTERNAL_ERROR" | "UNKNOWN_ERROR";
|
|
2
|
-
export declare class ApplicationException<CodeT> extends Error {
|
|
3
|
-
code: CodeT;
|
|
4
|
-
serverMessage: string | null;
|
|
5
|
-
constructor(message: string, code: CodeT, serverMessage: string | null);
|
|
6
|
-
}
|
|
7
|
-
interface ErrorEntry<CodeT> {
|
|
8
|
-
code: CodeT;
|
|
9
|
-
condition: (error: unknown) => boolean;
|
|
10
|
-
getMessage: (error: unknown) => string;
|
|
11
|
-
}
|
|
12
|
-
export declare class ErrorHandler<CodeT extends string> {
|
|
13
|
-
entries: ErrorEntry<CodeT | GeneralErrorCodes>[];
|
|
14
|
-
constructor(entries: ErrorEntry<CodeT>[]);
|
|
15
|
-
rethrowError(error: unknown): ApplicationException<CodeT | GeneralErrorCodes>;
|
|
16
|
-
getError(error: unknown): ApplicationException<CodeT | GeneralErrorCodes> | null;
|
|
17
|
-
getErrorCode(error: unknown): CodeT | GeneralErrorCodes | null;
|
|
18
|
-
static getErrorMessage(error: unknown, fallbackToUnknown?: boolean): string | null;
|
|
19
|
-
}
|
|
20
|
-
export declare const SharedErrorHandler: ErrorHandler<never>;
|
|
21
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { ErrorHandler } from './error-handling';
|
|
4
|
-
import { RestInterceptor } from './rest-interceptor';
|
|
5
|
-
export type GeneralErrorCodes = string;
|
|
6
|
-
export interface RequestInfo<ZOutput, ECodes extends string> {
|
|
7
|
-
resSchema: z.ZodType<ZOutput>;
|
|
8
|
-
errorHandler?: ErrorHandler<ECodes>;
|
|
9
|
-
}
|
|
10
|
-
export interface RequestConfig<IsRawRes extends boolean = false> {
|
|
11
|
-
rawResponse?: IsRawRes;
|
|
12
|
-
}
|
|
13
|
-
export type Response<ZOutput, IsRawRes extends boolean = false> = IsRawRes extends true ? AxiosResponse<ZOutput> : ZOutput;
|
|
14
|
-
export interface RestClient {
|
|
15
|
-
attachInterceptors<T extends any[]>(interceptors?: RestInterceptor<T>[], ...args: T): void;
|
|
16
|
-
attachInterceptor<T extends any[]>(interceptor: RestInterceptor<T>, ...args: T): void;
|
|
17
|
-
ejectInterceptor<T extends any[]>(interceptor: RestInterceptor<T>): void;
|
|
18
|
-
get<ZOutput, ECodes extends string = GeneralErrorCodes, IsRawRes extends boolean = false>(requestInfo: RequestInfo<ZOutput, ECodes>, url: string, requestConfig?: AxiosRequestConfig & RequestConfig<IsRawRes>): Promise<Response<ZOutput, IsRawRes>>;
|
|
19
|
-
post<ZOutput, ECodes extends string = GeneralErrorCodes, IsRawRes extends boolean = false>(requestInfo: RequestInfo<ZOutput, ECodes>, url: string, data?: any, requestConfig?: AxiosRequestConfig & RequestConfig<IsRawRes>): Promise<Response<ZOutput, IsRawRes>>;
|
|
20
|
-
patch<ZOutput, ECodes extends string = GeneralErrorCodes, IsRawRes extends boolean = false>(requestInfo: RequestInfo<ZOutput, ECodes>, url: string, data?: any, requestConfig?: AxiosRequestConfig & RequestConfig<IsRawRes>): Promise<Response<ZOutput, IsRawRes>>;
|
|
21
|
-
put<ZOutput, ECodes extends string = GeneralErrorCodes, IsRawRes extends boolean = false>(requestInfo: RequestInfo<ZOutput, ECodes>, url: string, data?: any, requestConfig?: AxiosRequestConfig & RequestConfig<IsRawRes>): Promise<Response<ZOutput, IsRawRes>>;
|
|
22
|
-
delete<ZOutput, ECodes extends string = GeneralErrorCodes, IsRawRes extends boolean = false>(requestInfo: RequestInfo<ZOutput, ECodes>, url: string, data?: any, requestConfig?: AxiosRequestConfig & RequestConfig<IsRawRes>): Promise<Response<ZOutput, IsRawRes>>;
|
|
23
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AxiosInstance } from 'axios';
|
|
2
|
-
export declare class RestInterceptor<T extends any[]> {
|
|
3
|
-
private applyInterceptor;
|
|
4
|
-
private interceptorIdMap;
|
|
5
|
-
constructor(applyInterceptor: (client: AxiosInstance, ...args: T) => number);
|
|
6
|
-
addInterceptor(client: AxiosInstance, ...args: T): void;
|
|
7
|
-
removeInterceptor(client: AxiosInstance): void;
|
|
8
|
-
}
|