UNPKG

@rr0/time

Version:
34 lines 934 B
export class Level0ComponentParseResult { /** * @type number */ value: number; } /** * Parses a date component according to level 0 EDTF standard. * * @template P extends Level0YearParseResult = Level0YearParseResult */ export class Level0ComponentParser<P> extends EDTFParser<any> { /** * Interpret the string as decoded value(s) to construct a data type. * * @param {string} valueStr * @return {Level0ComponentParseResult} */ static read(valueStr: string): Level0ComponentParseResult; /** * @param {{ [p: string]: string }} groups * @return {Level0ComponentParseResult} */ parseGroups(groups: { [p: string]: string; }): Level0ComponentParseResult; /** * @param {string} str * @return {P} */ parse(str: string): P; } import { EDTFParser } from "../../EDTFParser.mjs"; //# sourceMappingURL=Level0ComponentParser.d.mts.map