News for hackers. Stuff that matters.
Re:Observable Framework 1.9 by simonw on Saturday June 15, 2024 @09:07PM (#40693914)
The React support looks interesting, are there any examples available? I couldn't spot any in https://github.com/observablehq/framework/tree/main/examples
Re:Observable Framework 1.9 by mbostock on Tuesday June 18, 2024 @07:41AM (#40716580)
Currently the only examples are here: https://observablehq.com/framework/jsx
Re:Observable Framework 1.9 by sebsebmc on Saturday June 15, 2024 @10:04PM (#40694165)
Im still hoping that Typescript support comes soon!
Re:Observable Framework 1.9 by mbostock on Tuesday June 18, 2024 @07:44AM (#40716609)
Thanks for the feedback. We implemented the transform to strip TypeScript annotations (using esbuild)…

https://github.com/observablehq/framework/pull/129

but this approach stalled because it doesn’t implement validation of TypeScript: the TypeScript annotations are simply ignored. I felt this defeats the point of using TypeScript. We probably need to use tsc instead of esbuild to get type checking. Hints welcome!

Re:Observable Framework 1.9 by BenoitP on Sunday June 16, 2024 @01:55AM (#40694983)
React! This has been on my Christmas wish list since Observable was first published.

Thanks mbostock!