From 422aef3a89c036594dc014222c73dfb4760ca548 Mon Sep 17 00:00:00 2001 From: denis0001-dev Date: Wed, 27 Aug 2025 20:19:00 +0300 Subject: [PATCH] Improve types --- .cursor/rules/general.mdc | 5 ++++- frontend/src/core/{types.ts => types.d.ts} | 0 frontend/src/electron/electron.ts | 1 - frontend/src/vite-env.d.ts | 2 +- frontend/tsconfig.json | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) rename frontend/src/core/{types.ts => types.d.ts} (100%) diff --git a/.cursor/rules/general.mdc b/.cursor/rules/general.mdc index 73226ca..545b96d 100644 --- a/.cursor/rules/general.mdc +++ b/.cursor/rules/general.mdc @@ -2,4 +2,7 @@ alwaysApply: true --- -- NEVER do anything i didn't ask you for! \ No newline at end of file +When working with this project, follow these rules: + +- NEVER do anything i didn't ask you for! +- Use double quotes ("") for strings. \ No newline at end of file diff --git a/frontend/src/core/types.ts b/frontend/src/core/types.d.ts similarity index 100% rename from frontend/src/core/types.ts rename to frontend/src/core/types.d.ts diff --git a/frontend/src/electron/electron.ts b/frontend/src/electron/electron.ts index 1139870..4810cc0 100644 --- a/frontend/src/electron/electron.ts +++ b/frontend/src/electron/electron.ts @@ -5,7 +5,6 @@ * @version 1.0.0 */ -import "../../electron.d.ts"; import { PRODUCT_NAME } from "../core/config.ts"; import { id } from "../utils/utils.ts"; diff --git a/frontend/src/vite-env.d.ts b/frontend/src/vite-env.d.ts index 11f02fe..151aa68 100644 --- a/frontend/src/vite-env.d.ts +++ b/frontend/src/vite-env.d.ts @@ -1 +1 @@ -/// +/// \ No newline at end of file diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 9f84047..28db92d 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -18,5 +18,5 @@ "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true }, - "include": ["src"] + "include": ["src", "electron.d.ts"] } \ No newline at end of file