• 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.

    Returns

    an object property descriptor to be used with Object.defineProperty

    Type Parameters

    Parameters

    • target: T
    • propertyKey: string

    Returns any

Generated using TypeDoc