export interface ParamsDictionary { [key: string]: any; } export interface BaseInput

{ params?: P; } export interface BaseOutput

{ data?: P; } export interface BaseContext extends ParamsDictionary { input: BaseInput; output: BaseOutput; namespace?: (namespace: string) => ContextStorage; restore?: () => void; } export type ContextStorage = { set: (value: T, key?: string | symbol) => void; get: (key?: string | symbol) => T; }; export type Next = () => Promise;