NetSuite FastTrack Toolkit (NFT) - v8.0.0
    Preparing search index...
    currency: <T extends NetsuiteCurrentRecord>(
        target: T,
        propertyKey: string,
    ) => any = numericDescriptor

    Type Declaration

      • <T extends NetsuiteCurrentRecord>(target: T, propertyKey: string): any
      • Just like the default descriptor but calls Number() on the value. This exists for numeric types that would blow up if you tried to assign number primitive values to a field. Don't know why - did various checks with lodash and typeof to confirm the raw value was a number but only passing through Number() worked on sets. Reads still seem to return a number.

        Type Parameters

        Parameters

        • target: T
        • propertyKey: string

        Returns any

        an object property descriptor to be used with Object.defineProperty