ldc-ovoteam/resources/ts/declarations.d.ts

48 lines
885 B
TypeScript

import type { AxiosStatic } from "axios";
import type { route as routeFn } from "ziggy-js";
declare module "*.svg" {
const content: string;
export default content;
}
declare module "*.jpg" {
const content: string;
export default content;
}
declare module "*.png" {
const content: string;
export default content;
}
declare global {
interface Window {
axios: AxiosStatic;
}
const route: typeof routeFn;
interface AppEnv {
mode: string;
name: string;
url: string;
locale: string;
locales: string;
fallbackLocale: string;
}
interface CookieEnv {
recaptchaKey?: string | null;
matomoUrl?: string | null;
matomoSiteId?: number | null;
gaMeasurementId?: number | null;
recaptchaBypassKey?: string;
}
type LaravelEnum = Record<
string,
{ label: string; name: string; value: number }
>;
}
export {};