1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-18 21:09:40 +02:00
portainer/app/global-axios.d.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
630 B
TypeScript
Raw Normal View History

import {
MaxDockerAPIVersionKey,
MaxDockerAPIVersionType,
} from './portainer/services/dockerMaxApiVersion';
export * from 'axios';
declare module 'axios' {
interface CreateAxiosDefaults {
/**
* require to define a default max Docker API Version when creating an axios instance
*/
[MaxDockerAPIVersionKey]: MaxDockerAPIVersionType;
}
interface AxiosRequestConfig {
/**
* represents the maximum Docker API version supported for the request
*
* the default will be used when not specified in the request config
*/
[MaxDockerAPIVersionKey]?: MaxDockerAPIVersionType;
}
}