From 9b6c779a3683400e03bfcbbbf0795059e4779226 Mon Sep 17 00:00:00 2001 From: p2405951 Date: Wed, 11 Feb 2026 15:23:36 +0100 Subject: [PATCH] correction vite-env.d.ts --- global.d.ts | 7 ------- src/pages/Profile/ProfilePage.tsx | 3 ++- src/vite-env.d.ts | 6 ++++++ tsconfig.json | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 global.d.ts create mode 100644 src/vite-env.d.ts diff --git a/global.d.ts b/global.d.ts deleted file mode 100644 index 02f8d6c..0000000 --- a/global.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/// - -declare module "*.module.css" { - const classes: { readonly [key: string]: string }; - export default classes; -} -// permet Ơ TS de reconnaƮtre les fichiers modules.css diff --git a/src/pages/Profile/ProfilePage.tsx b/src/pages/Profile/ProfilePage.tsx index bbcbb71..4c2fc6b 100644 --- a/src/pages/Profile/ProfilePage.tsx +++ b/src/pages/Profile/ProfilePage.tsx @@ -1,5 +1,6 @@ import { useContext, useEffect, useState, useRef } from "react"; -import styles from "../Profile/ProfilePage.module.css"; +// @ts-ignore +import styles from "./ProfilePage.module.css"; import { AuthContext } from "../../contexts/auth/AuthContext"; import formatDate from "../../utils/date/formatDate"; diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts new file mode 100644 index 0000000..b67473e --- /dev/null +++ b/src/vite-env.d.ts @@ -0,0 +1,6 @@ +/// + +declare module "*.module.css" { + const classes: { [key: string]: string }; + export default classes; +} diff --git a/tsconfig.json b/tsconfig.json index b3a52d5..3417353 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,6 +14,6 @@ "allowJs": true, "esModuleInterop": true }, - "include": ["src"], - "exclude": ["**/*.js"] + "include": ["src"] + // "exclude": ["**/*.js"] }