UNPKG

@gabliam/web-core

Version:
10 lines (9 loc) 562 B
/// <reference types="node" /> import { RequestListener, Server } from 'http'; import { ExecutionContext } from './execution-context'; import { GabContext } from './gab-context'; export type nextFn = () => Promise<any>; export type convertValueFn = (ctx: GabContext<any, any>, execCtx: ExecutionContext, result: any) => void; export type extractArgsFn = <V>(ctx: GabContext, execCtx: ExecutionContext | null | undefined, next: V) => Promise<any>; export type RequestListenerCreator = () => RequestListener; export type ServerConfig = (server: Server) => Server;