@tsed/common
Version:
A TypeScript Framework on top of Express
14 lines (13 loc) • 432 B
TypeScript
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;
};