This commit is contained in:
2025-11-29 15:24:00 +00:00
commit 9411b5ee49
42 changed files with 14742 additions and 0 deletions

45
ts/core/index.ts Normal file
View File

@@ -0,0 +1,45 @@
// 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';