CCC Docs
    Preparing search index...

    Function depTypeFromBytes

    • Converts a byte-like value to a DepType.

      Parameters

      • bytes: BytesLike

        The byte-like value to convert.

      Returns DepType

      The corresponding DepType.

      Will throw an error if the input bytes do not correspond to a valid dep type.

      const depType = depTypeFromBytes(new Uint8Array([1])); // Outputs "code"