mirror of
https://github.com/sern-handler/handler
synced 2026-06-06 01:16:55 +00:00
fixed export errors
This commit is contained in:
@@ -9,6 +9,7 @@ import type { Utils } from "../utils/preprocessors/args";
|
||||
|
||||
|
||||
export namespace Sern {
|
||||
|
||||
export class Handler {
|
||||
private wrapper: Sern.Wrapper;
|
||||
private msgHandler : MsgHandler = new MsgHandler();
|
||||
@@ -74,6 +75,8 @@ export namespace Sern {
|
||||
delegate : (message: Message, args: Ok<T> ) => Awaitable<Result<possibleOutput, string > | void>
|
||||
parse? : (message: Message, args: string) => Utils.ArgType<T>
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
class MsgHandler {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { Sern } from "./handler/sern/sern";
|
||||
import { Utils } from "./handler/utils/preprocessors/args"
|
||||
|
||||
module.exports.Sern = Sern;
|
||||
module.exports.Utils = Utils;
|
||||
export default { Sern, Utils };
|
||||
module.exports = { Sern, Utils };
|
||||
export { Sern, Utils };
|
||||
Reference in New Issue
Block a user