Skip to main content

Interface: ModuleManager

Since

2.0.0

Implemented by

Methods

get

get(id): undefined | string

Parameters

NameType
idstring

Returns

undefined | string

Defined in

src/core/contracts/module-manager.ts:13


getByNameCommandType

getByNameCommandType<T>(name, commandType): undefined | Promise<CommandModuleDefs[T]>

Type parameters

NameType
Textends CommandType

Parameters

NameType
namestring
commandTypeT

Returns

undefined | Promise<CommandModuleDefs[T]>

Defined in

src/core/contracts/module-manager.ts:18


getMetadata

getMetadata(m): undefined | CommandMeta

Parameters

NameType
mModule

Returns

undefined | CommandMeta

Defined in

src/core/contracts/module-manager.ts:14


getPublishableCommands

getPublishableCommands(): Promise<CommandModule[]>

Returns

Promise<CommandModule[]>

Defined in

src/core/contracts/module-manager.ts:17


set

set(id, path): void

Parameters

NameType
idstring
pathstring

Returns

void

Defined in

src/core/contracts/module-manager.ts:16


setMetadata

setMetadata(m, c): void

Parameters

NameType
mModule
cCommandMeta

Returns

void

Defined in

src/core/contracts/module-manager.ts:15