Documentation
    Preparing search index...

    Type Alias TagBase<Props>

    Base type for all typia validation tags.

    TagBase is the foundation for all typia type tags (constraints like Minimum, MaxLength, Format, etc.). It attaches compile-time metadata to TypeScript types using a phantom property pattern.

    The typia transformer reads these tags at compile time and generates appropriate runtime validation code. The tags themselves have no runtime presence - they exist only in the type system.

    This is an internal implementation detail. Use the specific tag types (e.g., Minimum, Format, Pattern) rather than TagBase directly.

    Jeongho Nam - https://github.com/samchon

    type TagBase<Props extends tags.TagBase.IProps<any, any, any, any, any, any>> = {
        "typia.tag"?: Props;
    }

    Type Parameters

    • Props extends tags.TagBase.IProps<any, any, any, any, any, any>

      Tag properties defining validation behavior and schema output

    Index

    Properties

    Properties

    "typia.tag"?: Props

    Compile-time marker property for typia transformer.

    This phantom property carries tag metadata in the type system. It is never assigned at runtime - it exists only for the transformer to read during compilation.