timepiece/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.d.mts

15 lines
531 B
TypeScript
Raw Normal View History

2024-05-14 14:54:12 +00:00
import type { Match } from "../../../locale/types.js";
import { Parser } from "../Parser.js";
import type { ParseFlags, ParseResult } from "../types.js";
export declare class ISOWeekParser extends Parser<number> {
priority: number;
parse(dateString: string, token: string, match: Match): ParseResult<number>;
validate<DateType extends Date>(_date: DateType, value: number): boolean;
set<DateType extends Date>(
date: DateType,
_flags: ParseFlags,
value: number,
): DateType;
incompatibleTokens: string[];
}