When using the typegen with multiple --from-bundles, you end up with multiple definitions for AnyResource.
The reason for this is that the build_ast function is executed for each bundle. See cli.py#L32.
I think it would be better to chain all StructureDefinitions first and then call build_ast only a single time.
When using the typegen with multiple
--from-bundles
, you end up with multiple definitions forAnyResource
. The reason for this is that thebuild_ast
function is executed for each bundle. See cli.py#L32. I think it would be better to chain all StructureDefinitions first and then callbuild_ast
only a single time.