1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
From: Yadd <yadd@debian.org>
Date: Wed, 5 Jun 2024 15:52:53 +0200
Subject: tsc workaround
Forwarded: not-needed
Last-Update: 2023-09-02
---
builder/src/extensionConfig.ts | 1 +
buildutils/tsconfig.json | 2 +-
galata/tsconfig.json | 1 +
packages/notebook/src/searchprovider.ts | 1 +
packages/settingregistry/src/settingregistry.ts | 3 +++
5 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/builder/src/extensionConfig.ts b/builder/src/extensionConfig.ts
index 389f593..b0d9b9e 100644
--- a/builder/src/extensionConfig.ts
+++ b/builder/src/extensionConfig.ts
@@ -32,6 +32,7 @@ function generateConfig({
}: IOptions = {}): webpack.Configuration[] {
const data = require(path.join(packagePath, 'package.json'));
+// @ts-ignore
const ajv = new Ajv({ useDefaults: true, strict: false });
const validate = ajv.compile(require('../metadata_schema.json'));
let valid = validate(data.jupyterlab ?? {});
diff --git a/buildutils/tsconfig.json b/buildutils/tsconfig.json
index 7095bed..ebff971 100644
--- a/buildutils/tsconfig.json
+++ b/buildutils/tsconfig.json
@@ -4,7 +4,7 @@
"outDir": "lib",
"rootDir": "src",
"module": "commonjs",
- "moduleResolution": "node16"
+ "moduleResolution": "node"
},
"include": ["src/*"],
"references": []
diff --git a/galata/tsconfig.json b/galata/tsconfig.json
index f3293fc..2f71b55 100644
--- a/galata/tsconfig.json
+++ b/galata/tsconfig.json
@@ -9,6 +9,7 @@
"lib": ["DOM", "DOM.iterable", "es2019.array"]
},
"include": ["src/**/*"],
+ "exclude": ["**/*benchmark*/**/*"],
"references": [
{
"path": "../packages/application"
diff --git a/packages/notebook/src/searchprovider.ts b/packages/notebook/src/searchprovider.ts
index 674a868..e820e43 100644
--- a/packages/notebook/src/searchprovider.ts
+++ b/packages/notebook/src/searchprovider.ts
@@ -714,6 +714,7 @@ export class NotebookSearchProvider extends SearchProvider<NotebookPanel> {
// change, and if selection is getting extended, we do not want to clear
// highlights just to re-apply them shortly after, which has side effects
// impacting the functionality and performance.
+// @ts-ignore
this._delayedActiveCellChangeHandler = setTimeout(() => {
this.delayedActiveCellChangeHandlerReady =
this._handleHighlightsAfterActiveCellChange();
diff --git a/packages/settingregistry/src/settingregistry.ts b/packages/settingregistry/src/settingregistry.ts
index c1e7122..e359e1f 100644
--- a/packages/settingregistry/src/settingregistry.ts
+++ b/packages/settingregistry/src/settingregistry.ts
@@ -35,6 +35,7 @@ const AJV_DEFAULT_OPTIONS: Partial<AjvOptions> = {
* @todo the implications of enabling strict mode are beyond the scope of
* the initial PR
*/
+// @ts-ignore
strict: false
};
@@ -263,10 +264,12 @@ export class DefaultSchemaValidator implements ISchemaValidator {
return null;
}
+// @ts-ignore
private _composer: Ajv = new Ajv({
useDefaults: true,
...AJV_DEFAULT_OPTIONS
});
+// @ts-ignore
private _validator: Ajv = new Ajv({ ...AJV_DEFAULT_OPTIONS });
}
|