Define a schema to encode / decode convert type T to type E.

Hierarchy (view full)

  • Schema<string, string>
    • QrCodeSchema

Constructors

Methods

  • Decodes the encoded data using the schema.

    Parameters

    • encoded: string
    • Optionalvalidate: boolean

    Returns string

  • Parameters

    • _encoded: string

    Returns string

  • Encodes the value using the schema.

    Parameters

    • value: string

    Returns string

  • Parameters

    • data: string

    Returns string

  • Parameters

    • code: string

    Returns string

  • Optional validator that can be used to enforce constraints on the data before encoding / after decoding.

    Parameters

    • _value: string

    Returns void