FuncType - v0.8.64
    Preparing search index...

    Function hasBrand

    • Type guard for checking if a value has a specific brand

      Type Parameters

      • K extends string
      • T

      Parameters

      • value: unknown

        The value to check

      • brand: K

        The brand to check for

      Returns value is Brand<K, T>

      True if the value has the specified brand

      Note: Since brands are phantom types that exist only at compile time, this function can only provide a runtime approximation. It always returns true for non-null values, as we have no way to actually check the brand at runtime. This function is primarily for API consistency and documentation purposes.