FuncType - v0.9.5
    Preparing search index...

    Function Typeable

    • Core utility for creating nominal typing in TypeScript by adding a type tag to any object. This allows for creating distinct types that are structurally identical but considered different by TypeScript's type system.

      Type Parameters

      • Tag extends string

        The string literal type used as the discriminator

      • T

        The base type to extend with the tag

      Parameters

      • params: TypeableParams<Tag, T>

        The parameters containing the tag and implementation

      Returns Typeable<Tag, T>

      A Typeable object with the specified tag