Skip to main content

Class: LibsRegistry

Libraries registry.

Constructors#

constructor#

new LibsRegistry(version)

Construct a new libraries registry for the specific version.

Parameters#

NameTypeDescription
versionstringThe version of the Zea Engine that will be validated against the registered libraries.

Defined in#

LibsRegistry.ts:12

Properties#

registry#

registry: Record<string, unknown>

Defined in#

LibsRegistry.ts:5


version#

version: string

Defined in#

LibsRegistry.ts:6

Methods#

listLibs#

listLibs(): Record<string, unknown>

List the registered libraries with their versions.

Returns#

Record<string, unknown>

Libraries list.

Defined in#

LibsRegistry.ts:37


registerLib#

registerLib(packageJson): void

Validate and register a library.

Parameters#

NameTypeDescription
packageJsonRecord<string, any>The package.json of the library to register.

Returns#

void

Defined in#

LibsRegistry.ts:21