From 21a20523b8e9ed1324d9f27985e13835b4ca549a Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Tue, 2 May 2023 10:28:58 -0500 Subject: [PATCH] chore(core): add DefaultWrapper as sern classic --- src/core/structures/index.ts | 1 + src/core/structures/wrapper.ts | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/src/core/structures/index.ts b/src/core/structures/index.ts index 35f1363..b5a4e4b 100644 --- a/src/core/structures/index.ts +++ b/src/core/structures/index.ts @@ -1,3 +1,4 @@ export * from './errors'; export * from './enums'; export * from './moduleStore'; +export * from './context' diff --git a/src/core/structures/wrapper.ts b/src/core/structures/wrapper.ts index b61984e..ca5a36a 100644 --- a/src/core/structures/wrapper.ts +++ b/src/core/structures/wrapper.ts @@ -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;