patch package fix type check
This commit is contained in:
parent
a8a5a0a3f1
commit
2de2217fe2
737
package-lock.json
generated
737
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,8 @@
|
|||||||
"build": "cross-env TS_NODE_PROJECT=\"tsconfig.webpack.json\" webpack",
|
"build": "cross-env TS_NODE_PROJECT=\"tsconfig.webpack.json\" webpack",
|
||||||
"type-check": "tsc",
|
"type-check": "tsc",
|
||||||
"dev": "npm run build -- --watch",
|
"dev": "npm run build -- --watch",
|
||||||
"lint": "eslint"
|
"lint": "eslint",
|
||||||
|
"postinstall": "patch-package"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "Joseph HENRY <joseph@autourdeminuit.com> (Autour du Volcan)",
|
"author": "Joseph HENRY <joseph@autourdeminuit.com> (Autour du Volcan)",
|
||||||
@ -23,6 +24,7 @@
|
|||||||
"core-js": "^3.46.0",
|
"core-js": "^3.46.0",
|
||||||
"cross-env": "^10.1.0",
|
"cross-env": "^10.1.0",
|
||||||
"eslint": "^9.39.1",
|
"eslint": "^9.39.1",
|
||||||
|
"patch-package": "^8.0.1",
|
||||||
"tba-types": "github:bryab/tba-types",
|
"tba-types": "github:bryab/tba-types",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"tsconfig-paths": "^4.2.0",
|
"tsconfig-paths": "^4.2.0",
|
||||||
|
|||||||
38
patches/tba-types+0.0.1.patch
Normal file
38
patches/tba-types+0.0.1.patch
Normal 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;
|
||||||
Loading…
x
Reference in New Issue
Block a user