Skip to main content

Module Schema Builder

ModuleSchema is a class responsible building the modules schema and fetching modules information

API Reference

Initialize Builder

initialize()Promise<ModuleSchema>

Initializes the object by setting the manifest, initializing controllers, and processors.

Return: A promise that resolves to the initialized object.

Get Key Value

getKeyValue(key)any

Get the value of a specific key from the packageJson object.

Return: The value corresponding to the provided key from the packageJson object.

Available arguments :

ParameterTypeDescription
keystringThe key to retrieve the value for.

Fetch Controller

getController(id)any

Retrieves a controller object based on the provided ID.

Return: The controller object associated with the provided ID.

Available arguments :

ParameterTypeDescription
idstringThe ID of the controller to retrieve.

Properties

ParameterTypeDescription
moduleModule | nullThe module associated with this object, or null if not set.
namestringThe name of the package as a string.
descriptionstringThe description of the package as a string.
authorstringThe author of the package as a string.
licensestringThe license information.