You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@stackpress/lib/types is the intended import path for the type surface. Many types are re-exported from the root barrel, but the dedicated types subpath is the clearest stable reference point.
Data Types
Type
Purpose
TypeOf<T>
Normalizes primitive generic reads.
Key
`string
NestedObject<V>
Nested object tree.
UnknownNest
NestedObject<unknown>.
Scalar
`string
Hash
Nested scalar-only object.
ScalarInput
Scalar, scalar array, or hash.
CallableNest<M>
Callable wrapper returned by nest().
CallableMap<K, V>
Callable wrapper returned by map().
CallableSet<V>
Callable wrapper returned by set().
Status And Error Types
Type
Purpose
ResponseStatus
{ code, status }.
ErrorResponse
Error status payload with error, errors, stack, and optional position fields.
SuccessResponse<T>
Success payload with results and total.
StatusResponse<T>
Partial combination of error and success fields.
Trace
Parsed stack frame metadata.
CookieOptions
Cookie serialization options.
CookieParseOptions
Cookie parse options.
CookieSerializeOptions
Cookie serialize options.
Queue And Event Types
Type
Purpose
Item<I>
Priority queue item.
TaskResult
Allowed task return shape.
TaskAction<A>
Async or sync queue task signature.
TaskItem<A>
Queue item wrapping a task.
EventMap
Event-name to argument-tuple map.
EventName<M>
Event-name key type.
EventData
Extracted args and params.
EventMatch
Match metadata.
Event<A>
Current event plus action and args.
EventHook<A>
Hook signature for emitter before/after callbacks.