Re:Observable Notebooks 2.0 Technology Preview
by mbostock on Tuesday July 29, 2025 @12:33PM
(#44725428)
We’re interested in adding a TypeScript cell mode, probably first with type stripping rather than validating types. I was hoping for a pure JavaScript implementation; maybe we’ll try https://github.com/bloomberg/ts-blank-space? I’ve also been looking at https://github.com/val-town/codemirror-ts for the editor, but it’s a lot of machinery.
[ Parent
| on HN ]
Re:Observable Notebooks 2.0 Technology Preview
by jitl on Wednesday July 30, 2025 @08:32AM
(#44733371)
I would only expect type stripping, although it seems you already have the TypeScript language server hanging out in the editor for completion and docs and such, it’s not much extra challenge to get the VFS hooked up enough to show red squiggles in CodeMirror. I built a CodeMirror + typescript for the React docs site and it’s definitely machinery but not too bad maybe 600-800 LoC (never got merged, sad)