mirror of
https://github.com/sern-handler/handler
synced 2026-06-27 18:22:14 +00:00
chore(core): add DefaultWrapper as sern classic
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
export * from './errors';
|
||||
export * from './enums';
|
||||
export * from './moduleStore';
|
||||
export * from './context'
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
import type { ServerlessDependencies, WebsocketDependencies } from '../../types/handler';
|
||||
import { DispatchType, ServerlessStrategy, WebsocketStrategy } from '../platform';
|
||||
|
||||
export interface DefaultWrapper {
|
||||
commands: string;
|
||||
defaultPrefix?: string;
|
||||
events?: string;
|
||||
containerConfig: {
|
||||
get: (...keys: (keyof WebsocketDependencies)[]) => unknown[];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export interface WebsocketWrapper {
|
||||
readonly platform: WebsocketStrategy;
|
||||
|
||||
Reference in New Issue
Block a user