FuncType - v0.16.0
    Preparing search index...

    Function unwrapBrand

    • Helper to unwrap a branded value to its underlying type Works with both Brand and ValidatedBrand

      Type Parameters

      • K extends string
      • T

      Parameters

      • branded: Brand<K, T>

        The branded value (can be null or undefined)

      Returns T

      The original value without the brand

      Note: Also exported as 'unwrap' from 'functype/branded' for convenience

    • Helper to unwrap a branded value to its underlying type Works with both Brand and ValidatedBrand

      Type Parameters

      • K extends string
      • T

      Parameters

      • branded: Brand<K, T> | null

        The branded value (can be null or undefined)

      Returns T | null

      The original value without the brand

      Note: Also exported as 'unwrap' from 'functype/branded' for convenience

    • Helper to unwrap a branded value to its underlying type Works with both Brand and ValidatedBrand

      Type Parameters

      • K extends string
      • T

      Parameters

      • branded: Brand<K, T> | undefined

        The branded value (can be null or undefined)

      Returns T | undefined

      The original value without the brand

      Note: Also exported as 'unwrap' from 'functype/branded' for convenience

    • Helper to unwrap a branded value to its underlying type Works with both Brand and ValidatedBrand

      Type Parameters

      • K extends string
      • T

      Parameters

      • branded: Brand<K, T> | null | undefined

        The branded value (can be null or undefined)

      Returns T | null | undefined

      The original value without the brand

      Note: Also exported as 'unwrap' from 'functype/branded' for convenience