CCC Docs
    Preparing search index...

    Function depTypeFrom

    • Converts a DepTypeLike value to a DepType.

      Parameters

      • val: DepTypeLike

        The value to convert, which can be a string, number, or bigint.

      Returns DepType

      The corresponding DepType.

      Will throw an error if the input value is not a valid dep type.

      const depType = depTypeFrom(1); // Outputs "code"
      const depType = depTypeFrom("depGroup"); // Outputs "depGroup"