#Can a Dagger module be spread across two
1 messages ยท Page 1 of 1 (latest)
Every SDK supports multiple files and classes. The difference for Go is you can have functions of the same object in different files.
How do I get dagger functions to show me the functions for multiple files with TypeScript?
Nothing to do on the CLI, it just has to be done right in TypeScript:
- Make sure all types are imported in a
src/index.ts - Make sure those types are constructed (i.e., referenced in the return type of another function) from another object's method/function (except the "main object" which is created via its own constructor)
So the functions can't be completely independant?
That means dealing with large amounts of Dagger code in TypeScript isn't really feasible
Maybe I'm not understanding correctly, do you have an example?
Thank you