Deno Jupyter Lab tsconfig
Hello!
I am just starting to use deno kernel in jupyter lab, I have tried this in TypeScript:
const user = {
name: "Daniel",
age: 26,
};
user.location; // this line should produce an error
But this does not emit an error, I think it may be because tsconfig is not strict, but i do not find the way to configure tsconfig, is it possible?
Thanks a lot!!
7 Replies
Hey, it's not possible right now. We're currently working on supporting TS properly in VScode for notebooks
Doest It means tha it would be better move to jupyter for VScode and left jupyter lab (actually I am using jupyerlab in docker)?
Possibly, you will get type checking straight in the IDE without any config
Ok. just to be sure, does it mean that tsconfig is not working fine in VS Code with Jupyter?, I am using it but I do not still receive some expected errors, e.g:
class Point {
x = 0;
y = 0;
}
const pt = new Point(); pt.x = "0"; // This should be an error
const pt = new Point(); pt.x = "0"; // This should be an error
Yes, it's not working yet. Also Deno doesn't recognize tsconfig.json file, you'd have to use
compilerOptions
in deno.json fileAnd deno.json works in Jupyter with VSCode?
It's picked up automatically, but then again, type checking notebooks is not yet supported