mirror of
https://github.com/sern-handler/handler
synced 2026-06-14 20:02:16 +00:00
refactor: a lot
This commit is contained in:
@@ -27,7 +27,6 @@ export async function defaultModuleLoader<T extends Module>(absPath: string): Mo
|
||||
module = module.getInstance();
|
||||
}
|
||||
//todo readd class modules
|
||||
assert.ok(module.type > 0 && module.type < 1<<10, 'Found a module that does not have a valid type');
|
||||
return Ok({ module, absPath });
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
import { CoreModuleStore } from '../contracts';
|
||||
import { Module, CommandMeta } from '../types/modules';
|
||||
|
||||
/*
|
||||
* @internal
|
||||
* Version 4.0.0 will internalize this api. Please refrain from using ModuleStore!
|
||||
* For interacting with ModuleStore, use CoreModuleStore contract.
|
||||
* For interacting with modules, use the ModuleManager instead.
|
||||
*/
|
||||
export class ModuleStore implements CoreModuleStore {
|
||||
metadata = new WeakMap<Module, CommandMeta>();
|
||||
commands = new Map<string, string>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user