[AI] Move window typings import to globals.ts (#7142)

* [AI] Remove parent path import of window.ts from desktop-client tsconfig

Replace the `../../packages/loot-core/typings/window.ts` include in
desktop-client's tsconfig.json with a proper package import. This adds
a `./typings/*` export to loot-core's package.json and creates a
globals.ts file in desktop-client that imports the window types via
the package name.

https://claude.ai/code/session_01GrgAzjWd3XvqwBTfXLerxc

* [autofix.ci] apply automated fixes

* Add release notes for PR #7142

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Matiss Janis Aboltins
2026-03-06 23:00:50 +00:00
committed by GitHub
parent a8ec84ceac
commit fdf5c8d0a9
4 changed files with 9 additions and 7 deletions

View File

@@ -0,0 +1 @@
import 'loot-core/typings/window';

View File

@@ -19,13 +19,7 @@
{ "path": "../loot-core" },
{ "path": "../component-library" }
],
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.js",
// TODO: remove loot-core dependency
"../../packages/loot-core/typings/window.ts"
],
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
"exclude": [
"node_modules",
"build",

View File

@@ -49,6 +49,7 @@
"./shared/*": "./src/shared/*.ts",
"./types/models": "./src/types/models/index.ts",
"./types/*": "./src/types/*.ts",
"./typings/*": "./typings/*.ts",
"./lib-dist/electron/bundle.desktop.js": "./lib-dist/electron/bundle.desktop.js"
},
"scripts": {