package root:component; world root { import foo:shared-dependency/doc; import foo:shared-dependency/types; import main-dep: interface { use foo:shared-dependency/types.{a-typedef}; foo: func() -> a-typedef; } import adapter-dep: interface { use foo:shared-dependency/types.{a-typedef}; foo: func() -> a-typedef; } }