UNPKG

@tsed/common

Version:
14 lines (13 loc) 432 B
import { HandlerType } from "../../mvc/interfaces/HandlerType"; import { PlatformContext } from "../domain/PlatformContext"; export declare type PlatformCtxHandler = ($ctx: PlatformContext) => any | Promise<any>; /** * Create Ts.ED context handler * @param fn * @ignore */ export declare function useCtxHandler(fn: PlatformCtxHandler & { type?: HandlerType; }): PlatformCtxHandler & { type?: HandlerType | undefined; };