UNPKG

@api.global/typedserver

Version:

A TypeScript-based project for easy serving of static files with support for live reloading, compression, and typed requests.

17 lines (16 loc) 590 B
import { TypedServer } from '../classes.typedserver.js'; import * as servertools from '../servertools/index.js'; export interface ILoleServiceServerConstructorOptions { addCustomRoutes?: (serverArg: servertools.Server) => Promise<any>; serviceName: string; serviceVersion: string; serviceDomain: string; port?: number; } export declare class UtilityServiceServer { options: ILoleServiceServerConstructorOptions; typedServer: TypedServer; constructor(optionsArg: ILoleServiceServerConstructorOptions); start(): Promise<void>; stop(): Promise<void>; }