Files
website/docs/api/interfaces/ModuleManager.md
2023-07-28 00:15:56 -05:00

2.5 KiB

id, title, sidebar_label, sidebar_position, custom_edit_url
id title sidebar_label sidebar_position custom_edit_url
ModuleManager Interface: ModuleManager ModuleManager 0 null

Since

2.0.0

Implemented by

Methods

get

get(id): undefined | string

Parameters

Name Type
id string

Returns

undefined | string

Defined in

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


getByNameCommandType

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

Type parameters

Name Type
T extends CommandType

Parameters

Name Type
name string
commandType T

Returns

undefined | Promise<CommandModuleDefs[T]>

Defined in

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


getMetadata

getMetadata(m): undefined | CommandMeta

Parameters

Name Type
m Module

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

Name Type
id string
path string

Returns

void

Defined in

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


setMetadata

setMetadata(m, c): void

Parameters

Name Type
m Module
c CommandMeta

Returns

void

Defined in

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