Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FieldOptions

Hierarchy

  • FieldOptions

Index

Properties

Properties

Optional array

array: undefined | false | true
internal

Optional map

map: undefined | false | true

Whether the type is a map. You should prefer the short {} annotation

Example short {} annotation

class User {
    @Field({MyClass})
    config2: {[name: string]: MyClass} = {};
}

Example verbose annotation is necessary for factory method, if you face circular dependencies.

class User {
    @Field(() => MyClass, {map: true})
    config2: {[name: string]: MyClass} = {};
}

Optional type

type: Types
internal

Generated using TypeDoc