Josu
Josu2mo ago

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
bartlomieju
bartlomieju2mo ago
Hey, it's not possible right now. We're currently working on supporting TS properly in VScode for notebooks
Josu
JosuOP2mo ago
Doest It means tha it would be better move to jupyter for VScode and left jupyter lab (actually I am using jupyerlab in docker)?
bartlomieju
bartlomieju2mo ago
Possibly, you will get type checking straight in the IDE without any config
Josu
JosuOP4w ago
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
bartlomieju
bartlomieju4w ago
Yes, it's not working yet. Also Deno doesn't recognize tsconfig.json file, you'd have to use compilerOptions in deno.json file
Josu
JosuOP4w ago
And deno.json works in Jupyter with VSCode?
bartlomieju
bartlomieju4w ago
It's picked up automatically, but then again, type checking notebooks is not yet supported