Skip to content

@vttforge/core / requireModuleApi

Function: requireModuleApi()

requireModuleApi<T>(moduleId): T

The api another module publishes. Throws VTTF-0014 naming what is wrong.

Use it where the dependency is declared in relationships.requires and the module cannot work without it. Use moduleApi where the feature is optional.

Type Parameters

T

T = PackageApi

Parameters

moduleId

string

Returns

T

MIT licensed.