feat: make Context platform specific, CoreContext as Core

This commit is contained in:
Jacob Nguyen
2023-04-27 13:23:16 -05:00
parent e6f9207a47
commit 7f59f81b35
3 changed files with 27 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
import type { ServerlessDependencies, WebsocketDependencies } from '../../types/handler';
import { DispatchType, ServerlessStrategy, WebsocketStrategy } from '../platform/strategy';
import { DispatchType, ServerlessStrategy, WebsocketStrategy } from '../platform';
export interface WebsocketWrapper {
@@ -19,7 +19,7 @@ export interface WebsocketWrapper {
* @deprecated
* Type alias for WebsocketWrapper
*/
export type Wrapper = WebsocketWrapper
export type Wrapper = WebsocketWrapper | ServerlessWrapper
export interface ServerlessWrapper {
readonly platform: ServerlessStrategy