patch package fix type check

This commit is contained in:
2026-03-03 15:18:25 +01:00
parent a8a5a0a3f1
commit 2de2217fe2
3 changed files with 649 additions and 130 deletions
+38
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;