Skip to content

API reference

NamespaceDescription
prefix-
Type AliasDescription
AnyElysia-
AnySchema-
Context-
ErrorContext-
FileTypeDetector-
HTTPHeaders-
MacroToContext-
MacroToProperty-
NumericStatusNumeric form of a status name or code.
ProblemRFC 9457 Problem Details shape.
redirect-
SelectiveProblem-
SelectiveStatus-
Server-
SSEPayload-
StatusMap-
StatusMapBack-
StatusResponseDefault body for a status with no response. Named to keep emitted types small.
TaggedHTTPErrorClass returned by HTTPError.id
TFiles-
UnwrapModels-
UnwrapSchema-
ValidationErrorResponseRequest validation problem. Diagnostic fields are development-only.
VariableDescription
env-
fileServe a file from a path as the response.
formReturn a multipart/form-data response.
macroType-
Manifest-
redirect-
sse-
status-
StatusMap-
StatusMapBack-
t-
TypeSystemtypebox/system is a subgraph of typebox/type, so a static re-export here would pin ~231 KB of the deferral back into the eager graph. The proxy also guarantees Elysia’s own Settings default lands BEFORE the namespace is handed out, keeping a user’s explicit TypeSystem.Settings.Set(...) last — the ordering the eager setupTypebox() used to provide
validationDetailWrap a string into a TypeBox error callback that overrides the default validation message. Use as t.Number({ error: validationDetail('x must be a number') }).
FunctionDescription
borrow-
bytesCertify a byte stream for direct Response body pass-through.
createBaseContext-
createContext-
fileType-
inAotBuild-
prefix-
problemRFC 9457 Problem Details function
setFileTypeDetector-
setupTypebox-

Renames and re-exports Elysia

Last updated:

Type to search the documentation.

    Up arrowDown arrow to navigateEnter to selectEscape to close