I just generated a TypeScript definition file using the latest version of didc (v0.3.6), but I ended up with an invalid TypeScript file. Specifically, I encountered the error TS2709: Cannot use namespace 'IDL' as a type.
I’m using a script, but the didc command I use is straightforward: didc bind -t ts "${didfile}" >"${tsfile}".
I also face the issue with both the ICP ledger and II did files, therefore I assume it is a standardised error.
In this project the versio of @dfinity/candid is v0.20.2.
Why am I facing this issue, and how can it be fixed?
