type alias RenderDecorator
Since 0.6.0

The decorator Render(Component) returns: assignable to a handler whose return is the component's props bag, sync or async, with any parameter list. A handler returning the WRONG shape fails compilation naming the mismatch — strictly stronger than NestJS's @Render('users/index'), a string checked against nothing.

Type Parameters

The decorated component's props bag

Definition

(
value: (...args: never[]) => P | HandlerResult | Promise<P | HandlerResult>,
context: ClassMethodDecoratorContext
) => void

Usage

import { type RenderDecorator } from "decorator-plugin/src/index.ts";