2022-09-16 21:15:46 +00:00
|
|
|
import { AxiosInstance } from "axios";
|
|
|
|
|
|
2022-09-12 22:08:34 +00:00
|
|
|
declare module 'vue/types/vue' {
|
|
|
|
|
interface Vue {
|
2022-09-16 21:15:46 +00:00
|
|
|
$axios: AxiosInstance;
|
|
|
|
|
|
2022-09-12 22:08:34 +00:00
|
|
|
$ovdashboard: {
|
2022-09-12 22:22:40 +00:00
|
|
|
api_url: (endpoint?: string) => string;
|
2022-09-16 21:15:46 +00:00
|
|
|
|
|
|
|
|
fail: (name: string) => ((arg0: unknown) => void);
|
|
|
|
|
|
|
|
|
|
api_query_simple: (
|
|
|
|
|
endpoint: string,
|
|
|
|
|
on_success: (data: unknown) => void
|
|
|
|
|
) => void;
|
|
|
|
|
|
|
|
|
|
api_query_simple_string: (
|
|
|
|
|
endpoint: string,
|
|
|
|
|
on_success: (data: string) => void
|
|
|
|
|
) => void;
|
|
|
|
|
|
|
|
|
|
api_query_simple_list: (
|
|
|
|
|
endpoint: string,
|
|
|
|
|
on_success: (data: string[]) => void
|
|
|
|
|
) => void;
|
|
|
|
|
|
|
|
|
|
api_query_simple_object: (
|
|
|
|
|
endpoint: string,
|
|
|
|
|
on_success: (data: Record<string, unknown>) => void
|
|
|
|
|
) => void;
|
2022-09-12 22:08:34 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export { };
|
|
|
|
|
|