Skip to content
Snippets Groups Projects
Commit 4f7a98bc authored by Max Frederiksen's avatar Max Frederiksen Committed by Max Frederiksen
Browse files

Add global TS files and modify tsconfig.json

parent 92429e51
No related branches found
No related tags found
2 merge requests!612Release 5.0.0,!590CE-3429: Convert to typescript
declare module "*.svg?react" {
const content: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
export default content;
}
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;
}
}
...@@ -25,9 +25,10 @@ ...@@ -25,9 +25,10 @@
"@testing-library/cypress", "@testing-library/cypress",
"@types/react", "@types/react",
"@types/react-dom", "@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"] "exclude": ["node_modules", "build"]
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment