elysia 0.7.24 → 0.7.25
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.
- package/dist/bun/index.d.ts +2 -5
- package/dist/bun/index.js +58 -58
- package/dist/bun/index.js.map +3 -3
- package/dist/cjs/index.d.ts +2 -5
- package/dist/index.d.ts +2 -5
- package/package.json +1 -1
package/dist/bun/index.d.ts
CHANGED
|
@@ -360,12 +360,9 @@ export default class Elysia<BasePath extends string = '', Decorators extends Dec
|
|
|
360
360
|
*/
|
|
361
361
|
on<Event extends keyof LifeCycleStore>(type: Exclude<Event, 'onResponse'> | 'response', handlers: MaybeArray<Extract<LifeCycleStore[Event], Function[]>[0]>): this;
|
|
362
362
|
group<const NewElysia extends Elysia<any, any, any, any, any, any>, const Prefix extends string>(prefix: Prefix, run: (group: Elysia<`${BasePath}${Prefix}`, Decorators, Definitions, ParentSchema, {}>) => NewElysia): NewElysia extends Elysia<any, infer PluginDecorators, infer PluginDefinitions, infer PluginSchema, any> ? Elysia<BasePath, PluginDecorators, PluginDefinitions, PluginSchema, Prettify<Routes & NewElysia['schema']>> : this;
|
|
363
|
-
group<const LocalSchema extends InputSchema<Extract<keyof Definitions['type'], string>>, const NewElysia extends Elysia<any, any, any, any, any, any>, const Prefix extends string, const Schema extends MergeSchema<UnwrapRoute<LocalSchema, Definitions['type']>, ParentSchema>>(prefix: Prefix, schema: LocalHook<LocalSchema, Schema, Decorators, Definitions['error'], `${BasePath}${Prefix}`>, run: (group: Elysia<`${BasePath}${Prefix}`, Decorators, Definitions, Schema, {}>) => NewElysia):
|
|
364
|
-
type: Prettify<Definitions['type'] & PluginDefinitions['type']>;
|
|
365
|
-
error: Prettify<Definitions['error'] & PluginDefinitions['error']>;
|
|
366
|
-
}, Prettify<ParentSchema & PluginSchema>, Prettify<Routes & NewElysia['schema']>> : this;
|
|
363
|
+
group<const LocalSchema extends InputSchema<Extract<keyof Definitions['type'], string>>, const NewElysia extends Elysia<any, any, any, any, any, any>, const Prefix extends string, const Schema extends MergeSchema<UnwrapRoute<LocalSchema, Definitions['type']>, ParentSchema>>(prefix: Prefix, schema: LocalHook<LocalSchema, Schema, Decorators, Definitions['error'], `${BasePath}${Prefix}`>, run: (group: Elysia<`${BasePath}${Prefix}`, Decorators, Definitions, Schema, {}>) => NewElysia): Elysia<BasePath, Decorators, Definitions, ParentSchema, Prettify<Routes & NewElysia['schema']>>;
|
|
367
364
|
guard<const LocalSchema extends InputSchema, const Route extends MergeSchema<UnwrapRoute<LocalSchema, Definitions['type']>, ParentSchema>>(hook: LocalHook<LocalSchema, Route, Decorators, Definitions['error'], BasePath>): Elysia<BasePath, Decorators, Definitions, Route, Routes, Scoped>;
|
|
368
|
-
guard<const LocalSchema extends InputSchema<Extract<keyof Definitions['type'], string>>, const NewElysia extends Elysia<any, any, any, any, any, any>, const Schema extends MergeSchema<UnwrapRoute<LocalSchema, Definitions['type']>, ParentSchema>>(schema: LocalHook<LocalSchema, Schema, Decorators, Definitions['error']>, run: (group: Elysia<BasePath, Decorators, Definitions, Schema, {}, Scoped>) => NewElysia):
|
|
365
|
+
guard<const LocalSchema extends InputSchema<Extract<keyof Definitions['type'], string>>, const NewElysia extends Elysia<any, any, any, any, any, any>, const Schema extends MergeSchema<UnwrapRoute<LocalSchema, Definitions['type']>, ParentSchema>>(schema: LocalHook<LocalSchema, Schema, Decorators, Definitions['error']>, run: (group: Elysia<BasePath, Decorators, Definitions, Schema, {}, Scoped>) => NewElysia): Elysia<BasePath, Decorators, Definitions, ParentSchema, Prettify<Routes & NewElysia['schema']>, Scoped>;
|
|
369
366
|
use<NewElysia extends Elysia<any, any, any, any, any, any> = this>(plugin: MaybePromise<(app: NewElysia) => MaybePromise<NewElysia>>): NewElysia extends Elysia<any, infer PluginDecorators, infer PluginDefinitions, infer PluginSchema, any> ? Elysia<BasePath, {
|
|
370
367
|
request: Prettify<Decorators['request'] & PluginDecorators['request']>;
|
|
371
368
|
store: Prettify<Decorators['store'] & PluginDecorators['store']>;
|