NS Tools/DAL - v0.0.1
    Preparing search index...
    subrecord: <T extends NetsuiteCurrentRecord>(
        ctor: new (rec: Omit<record.Record, "save">) => T,
    ) => (target: any, propertyKey: string) => any = subrecordDescriptor

    Type Declaration

      • <T extends NetsuiteCurrentRecord>(
            ctor: new (rec: Omit<record.Record, "save">) => T,
        ): (target: any, propertyKey: string) => any
      • Decorator for sublist subrecord fields with the subrecord shape represented by T (which defines the properties you want on the subrecord)

        Type Parameters

        Parameters

        • ctor: new (rec: Omit<record.Record, "save">) => T

          Constructor for the subrecord class you want (e.g. AddressBase, InventoryDetail).

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