Well, that's not fundamental. There are plenty of projects that support generating typed bindings for libraries in one language for use by programs in another language. You could do the same thing here.
Fundamentally you go against the grain by generating an IDL from source code. I've never seen this done properly such that it is an improvement over just authoring the IDL in the first place and generating from that.
If your IDL isn't a first-class citizen then what do you expect the derivatives to be?
If your IDL isn't a first-class citizen then what do you expect the derivatives to be?