Description
Is your feature request related to a problem? Please describe.
Here is the context and discussion: https://forum.dfinity.org/t/automatic-javascript-idl-generation-from-candid/32692
I would like the automatically generated IDL objects (like from dfx generate
) to be exported from their module so that we can import them and use them across Azle APIs. Azle's 1.0-bound syntax uses @dfinity/candid
IDL
objects to handle Candid serialization and deserialization. Tools like dfx generate
make it easy to obtain these IDL
objects for arbitrary canisters. But the generated code does not export these objects, so devs cannot currently make automatic use of these objects.
Describe the solution you'd like
Just export these objects from the generated code. They are currently not exported and stuck within a function scope I believe. Just export them with their current names.
Describe alternatives you've considered
Alternatives are to write these objects by hand, or manually edit the generated code, or write a tool that manipulates the code...the most ideal straight-forward and probably simplest solution is to just export these objects. They already exist, we just need them exported.
Additional context
Here is the context and discussion: https://forum.dfinity.org/t/automatic-javascript-idl-generation-from-candid/32692