@hono-di/core 0.0.9 → 0.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.
@@ -1,70 +1,3 @@
1
- import { S as Scope, R as RequestMethod, M as ModuleOptions, T as Type, E as ExceptionFilter, I as InjectionToken, C as CanActivate, a as Interceptor, P as PipeTransform, b as ExecutionContext } from './interfaces-4oTuNIHA.js';
1
+ export { r as All, Y as Body, s as Catch, l as Controller, X as Ctx, a1 as CustomDecorator, D as Delete, L as FileParam, Q as Files, m as Get, G as Global, q as Head, a3 as Header, $ as Headers, W as HostParam, a2 as HttpCode, t as Inject, k as Injectable, h as InjectableOptions, V as Ip, j as Module, g as ModuleOptions, N as Next, u as Optional, O as Options, _ as Param, p as Patch, n as Post, o as Put, Z as Query, a4 as Redirect, B as Request, f as RequestMethod, J as Response, i as RouteDefinition, y as RouteParamtypes, S as Scope, K as Session, a0 as SetMetadata, U as UseFilters, v as UseGuards, w as UseInterceptors, x as UsePipes, a5 as applyDecorators, z as assignMetadata, a6 as createParamDecorator } from './decorators-ClTJ_N9c.js';
2
2
  import 'hono';
3
3
  import 'rxjs';
4
-
5
- interface InjectableOptions {
6
- scope?: Scope;
7
- }
8
- interface RouteDefinition {
9
- path: string;
10
- requestMethod: RequestMethod;
11
- methodName: string;
12
- }
13
- declare function Global(): ClassDecorator;
14
- declare function Module(options: ModuleOptions): ClassDecorator;
15
- declare function Injectable(options?: InjectableOptions): ClassDecorator;
16
- declare function Controller(prefix?: string): ClassDecorator;
17
- declare const Get: (path?: string) => MethodDecorator;
18
- declare const Post: (path?: string) => MethodDecorator;
19
- declare const Put: (path?: string) => MethodDecorator;
20
- declare const Delete: (path?: string) => MethodDecorator;
21
- declare const Patch: (path?: string) => MethodDecorator;
22
- declare const Options: (path?: string) => MethodDecorator;
23
- declare const Head: (path?: string) => MethodDecorator;
24
- declare const All: (path?: string) => MethodDecorator;
25
- declare function Catch(...exceptions: Type<any>[]): ClassDecorator;
26
- declare function UseFilters(...filters: (Type<ExceptionFilter> | ExceptionFilter)[]): MethodDecorator & ClassDecorator;
27
- declare function Inject(token: InjectionToken): PropertyDecorator & ParameterDecorator;
28
- declare function Optional(): PropertyDecorator & ParameterDecorator;
29
- declare function UseGuards(...guards: (Type<CanActivate> | CanActivate)[]): MethodDecorator & ClassDecorator;
30
- declare function UseInterceptors(...interceptors: (Type<Interceptor> | Interceptor)[]): MethodDecorator & ClassDecorator;
31
- declare function UsePipes(...pipes: (Type<PipeTransform> | PipeTransform)[]): MethodDecorator & ClassDecorator;
32
- declare enum RouteParamtypes {
33
- REQUEST = 0,
34
- RESPONSE = 1,
35
- NEXT = 2,
36
- BODY = 3,
37
- QUERY = 4,
38
- PARAM = 5,
39
- HEADERS = 6,
40
- SESSION = 7,
41
- FILE = 8,
42
- FILES = 9,
43
- HOST = 10,
44
- IP = 11,
45
- CONTEXT = 12,
46
- CUSTOM = 13
47
- }
48
- declare function assignMetadata(args: any, paramtype: RouteParamtypes, index: number, data?: any, ...pipes: any[]): any;
49
- declare const Request: (data?: any) => ParameterDecorator;
50
- declare const Response: (data?: any) => ParameterDecorator;
51
- declare const Next: (data?: any) => ParameterDecorator;
52
- declare const Session: (data?: any) => ParameterDecorator;
53
- declare const FileParam: (data?: any) => ParameterDecorator;
54
- declare const Files: (data?: any) => ParameterDecorator;
55
- declare const Ip: (data?: any) => ParameterDecorator;
56
- declare const HostParam: (data?: any) => ParameterDecorator;
57
- declare const Ctx: (data?: any) => ParameterDecorator;
58
- declare function Body(property?: string, ...pipes: any[]): ParameterDecorator;
59
- declare function Query(property?: string, ...pipes: any[]): ParameterDecorator;
60
- declare function Param(property?: string, ...pipes: any[]): ParameterDecorator;
61
- declare function Headers(property?: string, ...pipes: any[]): ParameterDecorator;
62
- declare function SetMetadata<K = any, V = any>(metadataKey: K, metadataValue: V): CustomDecorator<K>;
63
- type CustomDecorator<TKey = string> = MethodDecorator & ClassDecorator;
64
- declare function HttpCode(statusCode: number): MethodDecorator;
65
- declare function Header(name: string, value: string): MethodDecorator;
66
- declare function Redirect(url: string, statusCode?: number): MethodDecorator;
67
- declare function applyDecorators(...decorators: Array<ClassDecorator | MethodDecorator | PropertyDecorator>): <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
68
- declare function createParamDecorator<FactoryData = any, Output = any>(factory: (data: FactoryData, ctx: ExecutionContext) => Output): (data?: FactoryData) => ParameterDecorator;
69
-
70
- export { All, Body, Catch, Controller, Ctx, type CustomDecorator, Delete, FileParam, Files, Get, Global, Head, Header, Headers, HostParam, HttpCode, Inject, Injectable, type InjectableOptions, Ip, Module, ModuleOptions, Next, Optional, Options, Param, Patch, Post, Put, Query, Redirect, Request, RequestMethod, Response, type RouteDefinition, RouteParamtypes, Scope, Session, SetMetadata, UseFilters, UseGuards, UseInterceptors, UsePipes, applyDecorators, assignMetadata, createParamDecorator };