mirror of
https://github.com/sern-handler/website
synced 2026-06-06 01:16:47 +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: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