@wepublish/api
Version:
API core for we.publish.
16 lines (15 loc) • 538 B
TypeScript
import { Application } from 'express';
import pino from 'pino';
import { ContextOptions } from './context';
export interface WepublishServerOpts extends ContextOptions {
readonly playground?: boolean;
readonly introspection?: boolean;
readonly logger?: pino.Logger;
}
export declare class WepublishServer {
private readonly opts;
private app?;
constructor(opts: WepublishServerOpts, app?: Application | undefined);
listen(port?: number, hostname?: string): Promise<void>;
private setupPrismaMiddlewares;
}