🦉
Size: a a a
🦉
G
🦉
🦉
G
G
🦉
MT
type F = <T>(a: T) => T;
type B<X> = () => F<X>;
NS
type F = <T>(a: T) => T;
type B<X> = () => F<X>;
type F<T> = (a: T) => T;
type B<X> = () => F<X>;
MT
type F<T> = (a: T) => T;
type B<X> = () => F<X>;
NS
MT
interface AxiosInstance {
(config: AxiosRequestConfig): AxiosPromise;
(url: string, config?: AxiosRequestConfig): AxiosPromise;
defaults: AxiosRequestConfig;
interceptors: {
request: AxiosInterceptorManager<AxiosRequestConfig>;
response: AxiosInterceptorManager<AxiosResponse>;
};
getUri(config?: AxiosRequestConfig): string;
request<T = any, R = AxiosResponse<T>> (config: AxiosRequestConfig): Promise<R>;
get<T = any, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R>;
delete<T = any, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R>;
head<T = any, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R>;
options<T = any, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R>;
post<T = any, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
put<T = any, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
patch<T = any, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
}
type X = AxiosInstance['get']<number>;
VK
VK
KS
typescript
так, чтобы он понимал нестандартные глобальные объекты? Может коряво выразился. В общем скрипт будет запускаться в таком окружении, в котором, допустим, существует объект worker
, в котором есть какие-то поля и методы. Я так понимаю надо как-то их объявить (вместе с типами и возвращаемыми значениями)? Где и как это лучше всего сделать?KS
И
KS