UNPKG

date-fns

Version:

Modern JavaScript date utility library

21 lines (20 loc) 630 B
import type { Match } from "../../../locale/types.js"; import { Parser } from "../Parser.js"; import type { ParseFlags, ParseResult, ParserOptions } from "../types.js"; export declare class StandAloneLocalDayParser extends Parser<number> { priority: number; parse( dateString: string, token: string, match: Match, options: ParserOptions, ): 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[]; }