Files
sonarscantest/src/global.d.ts
WDI-Ideas 58d3a923f2
Some checks failed
SonarQube Analysis / SonarQube Scan (push) Failing after 1m52s
first commit
2026-03-30 08:39:00 +05:30

36 lines
649 B
TypeScript

/// <reference types="vite/client" />
// Vite ENV typing
interface ImportMetaEnv {
readonly VITE_API_URL: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}
// Image modules
declare module "*.png" {
const src: string;
export default src;
}
declare module "*.jpg" {
const src: string;
export default src;
}
declare module "*.jpeg" {
const src: string;
export default src;
}
declare module "*.svg" {
import * as React from "react";
const ReactComponent: React.FunctionComponent<
React.SVGProps<SVGSVGElement> & { title?: string }
>;
export { ReactComponent };
const src: string;
export default src;
}