r/javascript • • Apr 20 '26

diagrams-js - Cloud architecture diagrams as code

https://diagrams-js.hatemhosny.dev/
22 Upvotes

9 comments sorted by

View all comments

Show parent comment

3

u/abrahamguo Apr 20 '26

This is the TypeScript error that I get:

node_modules/diagrams-js/dist/index.d.ts:1171:7 - error TS2502: 'fromJSON' is referenced directly or indirectly in its own type annotation.

1171   var fromJSON: typeof fromJSON;

0

u/hatemhosny Apr 20 '26

Please update TypeScript: Newer versions of TypeScript handle recursive types correctly.

1

u/abrahamguo Apr 20 '26

I am on the most recent version of TypeScript.