NetSuite FastTrack Toolkit (NFT) - v8.0.0
    Preparing search index...

    Function numericDescriptor

    • 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