UNPKG

date-fns

Version:

Modern JavaScript date utility library

16 lines (15 loc) 576 B
import type { Match } from "../../../locale/types.js"; import { Parser } from "../Parser.js"; import type { ParseFlags, ParseResult, ParserOptions } from "../types.js"; export declare class LocalWeekParser 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, options: ParserOptions, ): DateType; incompatibleTokens: string[]; }