Blame view

天文台pc/tianwentai-ui/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.d.mts 630 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  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[];
  }