Typemapping only works properly when mojom targets get their deps right.
We don't currently enforce that mojom target deps are correct, and because of the way the generated source targets work, indirect dependencies are sufficient to allow under-specified direct dependencies to go undetected.
This can result in confusing problems where e.g. certain typemaps are not applied at bindings generation time.
It would be nice if we could have some check either in the bindings generator or a gn check step where we validate the set of imports against the set of deps.
Comment 1 by sa...@chromium.org
, Nov 23 2017