Interface RegexResult<T>

interface RegexResult<T> {
    captured: string[];
    index: number;
    match: string;
    named: Partial<Record<T, string>>;
}

Type Parameters

  • T extends string

    The validated type

Properties

captured: string[]
index: number
match: string
named: Partial<Record<T, string>>