unified-query
Version:
Composable search input with autocompletion and a rich query-language parser for the Unified Data System
8 lines (7 loc) • 338 B
TypeScript
import type { DateValue, Segment, ParsedKeyword } from '../parsers/types.js';
/**
* Semantic analyser for the `@date` keyword.
* Accepts only tokens produced by `dateParser` (kind === "date").
* Everything else is reported as an invalid token.
*/
export declare function analyzeDate(seg: Segment): ParsedKeyword<'date', DateValue[]>;