UNPKG

@hestjs/core

Version:

HestJS Core Framework - A TypeScript framework built on Hono with dependency injection and decorators

56 lines 2.41 kB
import 'reflect-metadata'; declare global { namespace Reflect { function defineMetadata(key: any, value: any, target: any, propertyKey?: string | symbol): void; function getMetadata(key: any, target: any, propertyKey?: string | symbol): any; } } /** * GET 请求装饰器 */ export declare const Get: (path?: string) => (target: any, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => PropertyDescriptor; /** * POST 请求装饰器 */ export declare const Post: (path?: string) => (target: any, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => PropertyDescriptor; /** * PUT 请求装饰器 */ export declare const Put: (path?: string) => (target: any, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => PropertyDescriptor; /** * DELETE 请求装饰器 */ export declare const Delete: (path?: string) => (target: any, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => PropertyDescriptor; /** * PATCH 请求装饰器 */ export declare const Patch: (path?: string) => (target: any, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => PropertyDescriptor; /** * 请求体参数装饰器 */ export declare const Body: (key?: string) => (target: any, propertyKey: string | symbol | undefined, parameterIndex: number) => void; /** * 路径参数装饰器 */ export declare const Param: (key?: string) => (target: any, propertyKey: string | symbol | undefined, parameterIndex: number) => void; /** * 查询参数装饰器 */ export declare const Query: (key?: string) => (target: any, propertyKey: string | symbol | undefined, parameterIndex: number) => void; /** * 请求头参数装饰器 */ export declare const Header: (key?: string) => (target: any, propertyKey: string | symbol | undefined, parameterIndex: number) => void; /** * 完整请求对象装饰器 */ export declare const Req: (key?: string) => (target: any, propertyKey: string | symbol | undefined, parameterIndex: number) => void; /** * 响应对象装饰器 */ export declare const Res: (key?: string) => (target: any, propertyKey: string | symbol | undefined, parameterIndex: number) => void; /** * 上下文装饰器 - 获取完整的 Hono Context */ export declare const Context: (key?: string) => (target: any, propertyKey: string | symbol | undefined, parameterIndex: number) => void; //# sourceMappingURL=route.d.ts.map