elysia 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -657,7 +657,7 @@ export default class Elysia<const in out BasePath extends string = '', const in
657
657
  * })
658
658
  * ```
659
659
  */
660
- onError<const Schema extends RouteSchema>(handler: ErrorHandler<Definitions['error'], MergeSchema<Schema, Metadata['schema'] & Ephemeral['schema'] & Volatile['schema']>, Singleton>): this;
660
+ onError<const Schema extends RouteSchema>(handler: ErrorHandler<Definitions['error'], MergeSchema<Schema, Metadata['schema'] & Ephemeral['schema'] & Volatile['schema']>, Singleton, Ephemeral, Volatile>): this;
661
661
  /**
662
662
  * ### Error | Life cycle event
663
663
  * Called when error is thrown during processing request
@@ -674,7 +674,7 @@ export default class Elysia<const in out BasePath extends string = '', const in
674
674
  */
675
675
  onError<const Schema extends RouteSchema>(options: {
676
676
  as?: LifeCycleType;
677
- }, handler: ErrorHandler<Definitions['error'], MergeSchema<Schema, Metadata['schema'] & Ephemeral['schema'] & Volatile['schema']>, Singleton>): this;
677
+ }, handler: ErrorHandler<Definitions['error'], MergeSchema<Schema, Metadata['schema'] & Ephemeral['schema'] & Volatile['schema']>, Singleton, Ephemeral, Volatile>): this;
678
678
  /**
679
679
  * ### stop | Life cycle event
680
680
  * Called after server stop serving request
@@ -1409,7 +1409,7 @@ export { Elysia };
1409
1409
  export { mapResponse, mapCompactResponse, mapEarlyResponse } from './handler';
1410
1410
  export { t } from './type-system';
1411
1411
  export { Cookie, type CookieOptions } from './cookies';
1412
- export { getSchemaValidator, mergeHook, mergeObjectArray, getResponseSchemaValidator, StatusMap, InvertedStatusMap } from './utils';
1412
+ export { getSchemaValidator, mergeHook, mergeObjectArray, getResponseSchemaValidator, redirect, StatusMap, InvertedStatusMap } from './utils';
1413
1413
  export { error, ParseError, NotFoundError, ValidationError, InternalServerError, InvalidCookieSignature, ERROR_CODE, ELYSIA_RESPONSE } from './error';
1414
1414
  export type { Context, PreContext } from './context';
1415
1415
  export type { EphemeralType, CreateEden, ComposeElysiaResponse, ElysiaConfig, SingletonBase, DefinitionBase, RouteBase, Handler, ComposedHandler, InputSchema, LocalHook, MergeSchema, RouteSchema, UnwrapRoute, InternalRoute, HTTPMethod, SchemaValidator, VoidHandler, PreHandler, BodyHandler, OptionalHandler, ErrorHandler, AfterHandler, LifeCycleEvent, TraceEvent, LifeCycleStore, LifeCycleType, MaybePromise, ListenCallback, UnwrapSchema, TraceHandler, TraceProcess, TraceReporter, TraceStream, Checksum, DocumentDecoration, InferContext, InferHandler } from './types';