UNPKG

honestjs

Version:

HonestJS - a modern web framework built on top of Hono

10 lines (9 loc) 489 B
import type { PipeType } from '../interfaces'; import type { Constructor } from '../types'; /** * Decorator that applies transformation pipes to a controller class or method * Pipes transform input data before it reaches the route handler * @param pipes - Array of pipes to apply * @returns A decorator function that can be used at class or method level */ export declare function UsePipes(...pipes: PipeType[]): (target: Constructor | object, propertyKey?: string | symbol) => void;