WebAssembly / component-model

Repository for design and specification of the Component Model
Other
935 stars 79 forks source link

Loosen type-export validation rules #145

Closed lukewagner closed 1 year ago

lukewagner commented 1 year ago

This PR slightly relaxes the validation criteria around exports to allow them to refer to either imported or exported resource types (not just exported resource types). What's still disallowed is referring to private resource types in the types of exports. Because private resource type definitions cannot appear inside componenttype/instancetype (which this PR adds to Explainer.md to match Binary.md), that means that there is nothing extra to validate at the type-level, only at the component-definition-level.