Interface PrePost<This>

PrePost type interface structure definition.

interface PrePost<This> {
    func: PrePostFunction<This>;
    id: number;
    metadata: DecoratorMetadataObject;
    name: string;
    options: PrePostOptions;
    propertyName: keyof This;
    type: symbol;
}

Type Parameters

  • This

Hierarchy

  • PropertyMetaDescriptor<This>
    • PrePost

Properties

Function that will be executed before or after the Controller, Validator and Transformer decorator.

id: number

Unique ID

metadata: DecoratorMetadataObject

Metadata object to which this decorator is applied.

name: string

Name of the decorator.

Options for prepost decorator

propertyName: keyof This

Property name of the object the decorator is applied.

type: symbol

Type symbol