Comparing version 0.4.7 to 0.4.8
@@ -28,3 +28,3 @@ /// <reference types="bun-types" /> | ||
}; | ||
export type Handler<Route extends OverwritableTypeRoute, Instance extends ElysiaInstance = ElysiaInstance, CatchResponse = unknown> = (context: Context<Route, Instance['store']> & Instance['request']) => IsUnknown<Route['response']> extends false ? Route['response'] extends Record<number, infer Unioned> ? Response | MaybePromise<Unioned> : Response | MaybePromise<Route['response']> : Response | MaybePromise<CatchResponse>; | ||
export type Handler<Route extends OverwritableTypeRoute, Instance extends ElysiaInstance = ElysiaInstance, CatchResponse = unknown> = (context: Context<Route, Instance['store']> & Instance['request']) => IsUnknown<Route['response']> extends false ? Route['response'] extends Record<number, infer Unioned extends TSchema> ? Response | MaybePromise<Unioned> : Response | MaybePromise<Route['response']> : Response | MaybePromise<CatchResponse>; | ||
export type NoReturnHandler<Route extends TypedRoute = TypedRoute, Instance extends ElysiaInstance = ElysiaInstance> = (context: Context<Route, Instance['store']> & Instance['request']) => void | Promise<void>; | ||
@@ -31,0 +31,0 @@ export type LifeCycleEvent = 'start' | 'request' | 'parse' | 'transform' | 'beforeHandle' | 'afterHandle' | 'error' | 'stop'; |
{ | ||
"name": "elysia", | ||
"description": "Fast, and friendly Bun web framework", | ||
"version": "0.4.7", | ||
"version": "0.4.8", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "saltyAom", |
@@ -51,3 +51,3 @@ import type { Elysia, ValidationError } from '.' | ||
) => IsUnknown<Route['response']> extends false | ||
? Route['response'] extends Record<number, infer Unioned> | ||
? Route['response'] extends Record<number, infer Unioned extends TSchema> | ||
? Response | MaybePromise<Unioned> | ||
@@ -54,0 +54,0 @@ : Response | MaybePromise<Route['response']> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
201725