Class ReflectionProperty

Hierarchy

  • ReflectionProperty

Constructors

Properties

data: {
    [name: string]: any;
} = {}

Type declaration

  • [name: string]: any
deserializer?: SerializerFn
jsonType?: Type
reflectionClass: ReflectionClass<any>
serializer?: SerializerFn
symbol: symbol
type: Type

Accessors

Methods

  • Returns database specific options, if defined

    interface User {
    logins: number & DatabaseField<{type: 'integer(8)'}>;

    //of for a specific db engine
    logins: number & Sqlite<{type: 'integer(8)'}>;
    }

    Type Parameters

    Parameters

    • name: string

    Returns undefined | T

  • Returns true when undefined or a missing value is allowed at the class itself. This is now only true when optional is set, but also when type is any.

    Returns boolean

  • Whether a value is required from serialization point of view. If this property has for example a default value (set via constructor or manually via t.default), then the value is not required to instantiate the property value.

    Returns boolean

Generated using TypeDoc