Millwork
    Preparing search index...

    Function decimalCodec

    • Makes a decimal codec for a decimal library. Give it the Decimal, Big or BigNumber constructor. The raw value is a decimal string. A number is also read, but never written. The codec writes plain notation, never exponent notation.

      The default name is 'big-decimal', so that it does not clash with the decimal codec of @millwork-ts/core when an app registers both. Give name to use another name.

      Type Parameters

      Parameters

      Returns Codec<string | number, T, DecimalOptions | undefined>