Very nice @Frank-III ! And clever to parse the TS types directly. I’ve been experimenting with that approach as well and it works surprisingly well.
Maybe we should set up a dedicated repo at some point for turning TS AST into ReScript types. There’s quite a lot of overlap between projects, everything from simple type mapping to mapping string | null → Null.t<string>, and so on.