elysia
Advanced tools
Comparing version 1.1.0-exp.6 to 1.1.0-exp.7
@@ -10,2 +10,3 @@ import { type Elysia } from '.'; | ||
export declare const isAsync: (v: Function | HookContainer) => boolean; | ||
export declare const isGenerator: (v: Function | HookContainer) => boolean; | ||
export declare const composeHandler: ({ app, path, method, localHook, hooks, validator, handler, allowMeta, inference }: { | ||
@@ -12,0 +13,0 @@ app: Elysia<any, any, any, any, any, any, any, any>; |
@@ -61,2 +61,13 @@ import type { Server } from 'bun'; | ||
status?: number | keyof StatusMap; | ||
/** | ||
* @deprecated Use inline redirect instead | ||
* | ||
* Will be removed in 1.2.0 | ||
* | ||
* @example Migration example | ||
* ```ts | ||
* new Elysia() | ||
* .get(({ redirect }) => redirect('/')) | ||
* ``` | ||
*/ | ||
redirect?: string; | ||
@@ -63,0 +74,0 @@ /** |
@@ -148,6 +148,5 @@ import type { TSchema } from '@sinclair/typebox'; | ||
export declare class ParseError extends Error { | ||
body?: unknown | undefined; | ||
code: string; | ||
status: number; | ||
constructor(message?: string, body?: unknown | undefined); | ||
constructor(); | ||
} | ||
@@ -154,0 +153,0 @@ export declare class InvalidCookieSignature extends Error { |
@@ -10,2 +10,3 @@ import { type Elysia } from '.'; | ||
export declare const isAsync: (v: Function | HookContainer) => boolean; | ||
export declare const isGenerator: (v: Function | HookContainer) => boolean; | ||
export declare const composeHandler: ({ app, path, method, localHook, hooks, validator, handler, allowMeta, inference }: { | ||
@@ -12,0 +13,0 @@ app: Elysia<any, any, any, any, any, any, any, any>; |
@@ -61,2 +61,13 @@ import type { Server } from 'bun'; | ||
status?: number | keyof StatusMap; | ||
/** | ||
* @deprecated Use inline redirect instead | ||
* | ||
* Will be removed in 1.2.0 | ||
* | ||
* @example Migration example | ||
* ```ts | ||
* new Elysia() | ||
* .get(({ redirect }) => redirect('/')) | ||
* ``` | ||
*/ | ||
redirect?: string; | ||
@@ -63,0 +74,0 @@ /** |
@@ -148,6 +148,5 @@ import type { TSchema } from '@sinclair/typebox'; | ||
export declare class ParseError extends Error { | ||
body?: unknown | undefined; | ||
code: string; | ||
status: number; | ||
constructor(message?: string, body?: unknown | undefined); | ||
constructor(); | ||
} | ||
@@ -154,0 +153,0 @@ export declare class InvalidCookieSignature extends Error { |
{ | ||
"name": "elysia", | ||
"description": "Ergonomic Framework for Human", | ||
"version": "1.1.0-exp.6", | ||
"version": "1.1.0-exp.7", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "saltyAom", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5334217
150554