Interface Transformer<This>

Transformer.

interface Transformer<This> {
    id: number;
    metadata: DecoratorMetadataObject;
    name: string;
    options: TransformerOptions;
    propertyName: keyof This;
    transformer: TransformerFunction<This>;
    type: symbol;
}

Type Parameters

  • This

Hierarchy

  • PropertyMetaDescriptor<This>
    • Transformer

Properties

id: number

Unique ID

metadata: DecoratorMetadataObject

Metadata object to which this decorator is applied.

name: string

Name of the decorator.

propertyName: keyof This

Property name of the object the decorator is applied.

The transformer function taking the value in input and return the transformed value.

type: symbol

Type symbol