Files
smartserve/ts/core/index.ts
2025-11-29 15:24:00 +00:00

46 lines
882 B
TypeScript

// Main server class
export { SmartServe } from './smartserve.classes.smartserve.js';
// Interfaces
export type {
// HTTP types
THttpMethod,
TRuntime,
// Request/Response
IRequestContext,
TRouteHandler,
IMethodOptions,
IRouteOptions,
// Interceptors
TRequestInterceptor,
TResponseInterceptor,
TGuardFunction,
IInterceptOptions,
IGuardOptions,
// WebSocket
IWebSocketMessage,
IWebSocketPeer,
IWebSocketHooks,
// Server config
ITLSConfig,
IKeepAliveConfig,
IStaticOptions,
IDirectoryListingOptions,
IFileEntry,
IWebDAVConfig,
ISmartServeOptions,
// Server instance
IServerStats,
ISmartServeInstance,
IConnectionInfo,
} from './smartserve.interfaces.js';
// Errors
export {
HttpError,
RouteNotFoundError,
UnsupportedRuntimeError,
ServerAlreadyRunningError,
ServerNotRunningError,
} from './smartserve.errors.js';