Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elysia

Package Overview
Dependencies
Maintainers
1
Versions
442
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elysia - npm Package Compare versions

Comparing version 0.4.7 to 0.4.8

2

dist/types.d.ts

@@ -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']>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc