ovdashboard/ui/src/d.ts/shims-ovdashboard.d.ts

37 lines
760 B
TypeScript
Raw Normal View History

2022-09-16 21:15:46 +00:00
import { AxiosInstance } from "axios";
declare module 'vue/types/vue' {
interface Vue {
2022-09-16 21:15:46 +00:00
$axios: AxiosInstance;
$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;
}
}
}
export { };