@blockchaincommons/dcbor-pattern - v1.0.0-beta.2
    Preparing search index...

    Type Alias ByteStringPattern

    ByteStringPattern:
        | { variant: "Any" }
        | { variant: "Value"; value: Uint8Array }
        | { variant: "BinaryRegex"; regex: PatternRegex }

    A pattern over byte strings: any, exact bytes, or a regex run over the bytes with one character per byte (\x00 names byte 0, \d an ASCII digit).

    Type Declaration

    • { variant: "Any" }
      • Readonlyvariant: "Any"

        The discriminant.

    • { variant: "Value"; value: Uint8Array }
      • Readonlyvariant: "Value"

        The discriminant.

      • Readonlyvalue: Uint8Array

        The bytes the byte string must equal.

    • { variant: "BinaryRegex"; regex: PatternRegex }
      • Readonlyvariant: "BinaryRegex"

        The discriminant.

      • Readonlyregex: PatternRegex

        The regex the bytes, one character each, must match.