patch package fix type check

This commit is contained in:
Joseph HENRY 2026-03-03 15:18:25 +01:00
parent a8a5a0a3f1
commit 2de2217fe2
3 changed files with 649 additions and 130 deletions

737
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,8 @@
"build": "cross-env TS_NODE_PROJECT=\"tsconfig.webpack.json\" webpack",
"type-check": "tsc",
"dev": "npm run build -- --watch",
"lint": "eslint"
"lint": "eslint",
"postinstall": "patch-package"
},
"keywords": [],
"author": "Joseph HENRY <joseph@autourdeminuit.com> (Autour du Volcan)",
@ -23,6 +24,7 @@
"core-js": "^3.46.0",
"cross-env": "^10.1.0",
"eslint": "^9.39.1",
"patch-package": "^8.0.1",
"tba-types": "github:bryab/tba-types",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",

View File

@ -0,0 +1,38 @@
diff --git a/node_modules/tba-types/shared/qobject.d.ts b/node_modules/tba-types/shared/qobject.d.ts
index beef3be..3afc025 100644
--- a/node_modules/tba-types/shared/qobject.d.ts
+++ b/node_modules/tba-types/shared/qobject.d.ts
@@ -17,7 +17,7 @@ declare class QObject {
/**
* Returns a list of child objects.
*/
- public children(...args): QObjectList;
+ public children(...args: unknown[]): QObjectList;
public connect(
sender: QObject,
diff --git a/node_modules/tba-types/shared/qt.d.ts b/node_modules/tba-types/shared/qt.d.ts
index c36f1e3..9736cdb 100644
--- a/node_modules/tba-types/shared/qt.d.ts
+++ b/node_modules/tba-types/shared/qt.d.ts
@@ -1,7 +1,7 @@
declare namespace Qt {
- const Checked;
- const UnChecked;
- const DecorationRole;
+ const Checked: number;
+ const UnChecked: number;
+ const DecorationRole: number;
type HANDLE = any;
enum AlignmentFlag {
diff --git a/node_modules/tba-types/shared/qtcore.d.ts b/node_modules/tba-types/shared/qtcore.d.ts
index e3b5906..b3ee291 100644
--- a/node_modules/tba-types/shared/qtcore.d.ts
+++ b/node_modules/tba-types/shared/qtcore.d.ts
@@ -1,4 +1,4 @@
-declare class QSignal<T extends (...any) => void> {
+declare class QSignal<T extends (...args: any[]) => void> {
connect(method: T): any;
connect(receiver: any, method: T): any;
disconnect(receiver: any, method: T): any;