From da486e921866d11e506675a548894a3ca96c29d5 Mon Sep 17 00:00:00 2001 From: epessina Date: Wed, 5 Jun 2024 12:30:29 +0200 Subject: [PATCH] Typings --- tsconfig.json | 1 + src/vite-env.d.ts => typings/index.d.ts | 14 ++++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) rename src/vite-env.d.ts => typings/index.d.ts (77%) diff --git a/tsconfig.json b/tsconfig.json index 764589cac..3c204f035 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -28,6 +28,7 @@ "include": [ "src", "scripts", + "typings", "vite.config.ts", "package.json" ], diff --git a/src/vite-env.d.ts b/typings/index.d.ts similarity index 77% rename from src/vite-env.d.ts rename to typings/index.d.ts index 7c8ccb1df..f52cff6cf 100644 --- a/src/vite-env.d.ts +++ b/typings/index.d.ts @@ -1,5 +1,5 @@ /** - * Copyright 2023 Mia srl + * Copyright 2024 Mia srl * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,13 +16,15 @@ * SPDX-License-Identifier: Apache-2.0 */ -declare module "*.svg" { - import * as React from "react" +declare module '*.svg' { + import * as React from 'react' - const ReactComponent: React.FunctionComponent & { title?: string }> + const ReactComponent: React.FunctionComponent & { title?: string }> export default ReactComponent } -/// -/// +declare module '*.module.css' { + const classes: CSSModuleClasses + export default classes +}