@celerity-sdk/types
v0.3.1
Published
Shared TypeScript interfaces and types for the Celerity Node SDK
Readme
@celerity-sdk/types
Shared TypeScript interfaces and types for the Celerity Node SDK.
This is the foundation package that all other @celerity-sdk/* packages depend on. It contains no runtime code, only type definitions and behavioral interfaces.
Installation
pnpm add @celerity-sdk/typesWhat's Included
| Category | Exports |
|---|---|
| DI & Providers | Type, InjectionToken, Closeable, Provider, ClassProvider, FactoryProvider, ValueProvider, ServiceContainer |
| HTTP | HttpMethod, HttpRequest, HttpResponse, HandlerMetadata, HandlerContext, HttpHandlerRequest, HttpHandlerContext |
| Layers | CelerityLayer, NextFunction, HandlerResponse |
| Modules | ModuleMetadata, FunctionHandlerDefinition |
| Validation | Schema |
| Telemetry | LogLevel, CelerityLogger, CelerityTracer, CeleritySpan |
Conventions
typeis used for data shapes, configs, options, and result objects.interfaceis reserved for behavioral contracts that classes implement (e.g.CelerityLayer,ServiceContainer,Schema).
Part of the Celerity Framework
See celerityframework.io for full documentation.
