Circle V2 API Docs
    Preparing search index...

    Type Alias MatchListByTextOptions<P, E>

    type MatchListByTextOptions<P, E> = {
        fuzzyThreshold?: number;
        getGroup?: (item: P | E) => unknown;
        getText: (item: P | E) => string;
    }

    Type Parameters

    • P
    • E
    Index

    Properties

    fuzzyThreshold?: number

    Cutoff for the fuzzy pass (0–1). Defaults to DEFAULT_FUZZY_MATCH_THRESHOLD.

    getGroup?: (item: P | E) => unknown

    Optional grouping key. Two items only match if getGroup(parsed) === getGroup(existing). Useful when items have a category that must align exactly (e.g. a question's pass_fail vs summary type).

    getText: (item: P | E) => string

    Text to compare for similarity.