mirror of
https://github.com/sern-handler/website
synced 2026-06-06 17:26:50 +00:00
2.7 KiB
2.7 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
- direct access to the module manager will be removed in version 4
Hierarchy
-
MetadataAccess↳
ModuleManager
Implemented by
Methods
get
▸ get(id): undefined | string
Parameters
| Name | Type |
|---|---|
id |
string |
Returns
undefined | string
Defined in
src/core/contracts/module-manager.ts:19
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:23
getMetadata
▸ getMetadata(m): undefined | CommandMeta
Parameters
| Name | Type |
|---|---|
m |
Module |
Returns
undefined | CommandMeta
Inherited from
MetadataAccess.getMetadata
Defined in
src/core/contracts/module-manager.ts:10
getPublishableCommands
▸ getPublishableCommands(): Promise<CommandModule[]>
Returns
Promise<CommandModule[]>
Defined in
src/core/contracts/module-manager.ts:22
set
▸ set(id, path): void
Parameters
| Name | Type |
|---|---|
id |
string |
path |
string |
Returns
void
Defined in
src/core/contracts/module-manager.ts:21
setMetadata
▸ setMetadata(m, c): void
Parameters
| Name | Type |
|---|---|
m |
Module |
c |
CommandMeta |
Returns
void
Inherited from
MetadataAccess.setMetadata