OpenDecree TypeScript SDK - v0.3.0-alpha.1
    Preparing search index...

    Function convertValue

    • Convert a raw string value to the target type.

      Parameters

      • raw: string

        The raw string value from the server.

      • type: Converter

        The target type constructor (String, Number, Boolean).

      Returns unknown

      The converted value.

      TypeMismatchError if the value cannot be converted.