initial
This commit is contained in:
45
ts/core/index.ts
Normal file
45
ts/core/index.ts
Normal 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';
|
||||
Reference in New Issue
Block a user