unified-query
Version:
Composable search input with autocompletion and a rich query-language parser for the Unified Data System
8 lines (7 loc) • 357 B
TypeScript
import type { TimeValue, Segment, ParsedKeyword, Cmp } from '../parsers/types.js';
/**
* Semantic analyser for `@time`.
* Accepts only tokens of kind `"time"`. Any other token is reported
* as a semantic error (“invalid token for @time”).
*/
export declare function analyzeTime(seg: Segment): ParsedKeyword<'time', (TimeValue | Cmp<TimeValue>)[]>;