Tempo API
    Preparing search index...

    Interface TermPlugin

    Interface for term-driven parsing and resolution.

    interface TermPlugin {
        define: (
            this: Tempo,
            keyOnly?: boolean,
            anchor?: any,
        ) => string | Range | Range[] | undefined;
        description?: string;
        groups?: any;
        key: string;
        locale?: Record<string, string | Function>;
        ranges?: any[];
        resolve?: (this: Tempo, anchor?: any) => Range[];
        scope?: string;
        version?: string;
    }
    Index

    Properties

    define: (
        this: Tempo,
        keyOnly?: boolean,
        anchor?: any,
    ) => string | Range | Range[] | undefined
    description?: string
    groups?: any
    key: string
    locale?: Record<string, string | Function>
    ranges?: any[]
    resolve?: (this: Tempo, anchor?: any) => Range[]
    scope?: string
    version?: string