boa-handler-init
Version:
A b-o-a handler for initializing in server-side
16 lines (15 loc) • 397 B
TypeScript
import { Handler } from 'boa-core';
import { Route } from 'boa-router';
export interface InitResponse {
handler: Handler;
}
declare const init: (options: {
dir: string;
middlewares: any[];
port: number;
render: (state: any, options: any) => any;
routes: Route[];
httpRequestActionType?: string;
httpResponseActionType?: string;
}) => InitResponse;
export { init };