mirror of
https://github.com/SrIzan10/sern-website.git
synced 2026-05-01 11:05:20 +00:00
2.5 KiB
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:8
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:13
getMetadata
▸ getMetadata(m): undefined | CommandMeta
Parameters
| Name | Type |
|---|---|
m |
Module |
Returns
undefined | CommandMeta
Defined in
src/core/contracts/module-manager.ts:9
getPublishableCommands
▸ getPublishableCommands(): Promise<CommandModule[]>
Returns
Promise<CommandModule[]>
Defined in
src/core/contracts/module-manager.ts:12
set
▸ set(id, path): void
Parameters
| Name | Type |
|---|---|
id |
string |
path |
string |
Returns
void
Defined in
src/core/contracts/module-manager.ts:11
setMetadata
▸ setMetadata(m, c): void
Parameters
| Name | Type |
|---|---|
m |
Module |
c |
CommandMeta |
Returns
void