diff --git a/declaration.d.ts b/declaration.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..ff05c729be798297ab4b2e8883ab756ba71d6fee --- /dev/null +++ b/declaration.d.ts @@ -0,0 +1,5 @@ +declare module "*.svg?react" { + const content: React.FunctionComponent<React.SVGAttributes<SVGElement>>; + + export default content; +} diff --git a/global.d.ts b/global.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..768e452c5080ac17a443d5d7f1150209f237f586 --- /dev/null +++ b/global.d.ts @@ -0,0 +1,14 @@ +export {}; + +declare global { + interface Window { + SERVER_ADDRESS: string; + ENVIRONMENT_TITLE: string; + API_BASE_ENDPOINT: string; + TOKEN_RENEW_INTERVAL: number; + FRONTEND_VERSION: string; + SUPPORT_URL: string; + NETBOX_ADDRESS: string; + NAMING_ADDRESS: string; + } +} diff --git a/tsconfig.json b/tsconfig.json index d291f9f921a5ad6280b635c80fbcc49492171cf2..a1cf19d396e7d4ba76dba74a88e837dd55c903f4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -25,9 +25,10 @@ "@testing-library/cypress", "@types/react", "@types/react-dom", - "vite/client" + "vite/client", + "msw" ] }, - "include": ["src", "cypress.d.ts"], + "include": ["src", "cypress.d.ts", "./global.d.ts", "declaration.d.ts"], "exclude": ["node_modules", "build"] }