NS Tools/DAL - v0.0.1
    Preparing search index...
    sublist: <T extends SublistLine>(
        ctor: LineConstructor<T>,
    ) => (target: any, propertyKey: string) => any = sublistDescriptor

    this isn't a native NS 'field' type, but rather is used to indicate a property should represent a NS sub-list. Pass a type derived from SublistLine that describes the sublist fields you want. e.g. Invoice.ItemSublistLine

    Type Declaration

      • <T extends SublistLine>(
            ctor: LineConstructor<T>,
        ): (target: any, propertyKey: string) => any
      • Decorator for adding sublists with each line of the sublist represented by a type T which defines the properties you want on the sublist

        Type Parameters

        Parameters

        • ctor: LineConstructor<T>

          Constructor for the type that has the properties you want from each sublist line. e.g. Invoice.ItemSublistLine

        Returns (target: any, propertyKey: string) => any

    class MySublistLine extends Invoice.ItemSublistLine { custcol_foo:string }
    class Invoice {
    @FieldType.sublist(MySublistLine)
    item: SublistLine<MySublistLine>
    }