Skip to content

Commit d8d1d79

Browse files
Update typescript config
- `"importsNotUsedAsValues"` deprecated in favor of `"verbatimModuleSyntax"` - `"paths"` definition added to silence complaints - Recommended in https://jupyterlab.readthedocs.io/en/latest/extension/extension_dev.html#developing-a-prebuilt-extension - Fix imports/type-imports for newer typescript
1 parent cdc664b commit d8d1d79

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

webio_jupyter_extension/tsconfig.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@
1919
"strictNullChecks": true,
2020
"target": "es2017",
2121
"types": [],
22-
"importsNotUsedAsValues": "error",
23-
"skipLibCheck": true
22+
"verbatimModuleSyntax": true,
23+
"skipLibCheck": true,
24+
"paths": {
25+
"@jupyterlab/*": ["../jupyterlab/packages/*"],
26+
"*": ["./node_modules/*"]
27+
}
2428
},
2529
"include": ["webio-jupyter-labextension/*"]
2630
}

webio_jupyter_extension/webio-jupyter-labextension/labextension.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import debug from "debug";
22
import { Panel } from "@lumino/widgets";
3-
import { DisposableDelegate, IDisposable } from "@lumino/disposable";
3+
import { DisposableDelegate } from "@lumino/disposable";
4+
import type { IDisposable } from "@lumino/disposable";
45

56
import type { JupyterFrontEndPlugin } from "@jupyterlab/application";
67
import type { DocumentRegistry } from "@jupyterlab/docregistry";

0 commit comments

Comments
 (0)