UEA-PRODEM
This commit is contained in:
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../locale/types.js";
|
||||
import { ValueSetter } from "./Setter.js";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "./types.js";
|
||||
import type { Match } from "../../locale/types.ts";
|
||||
import { ValueSetter } from "./Setter.ts";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "./types.ts";
|
||||
export declare abstract class Parser<Value> {
|
||||
abstract incompatibleTokens: string[] | "*";
|
||||
abstract priority: number;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../locale/types.js";
|
||||
import { ValueSetter } from "./Setter.js";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "./types.js";
|
||||
import type { Match } from "../../locale/types.ts";
|
||||
import { ValueSetter } from "./Setter.ts";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "./types.ts";
|
||||
export declare abstract class Parser<Value> {
|
||||
abstract incompatibleTokens: string[] | "*";
|
||||
abstract priority: number;
|
||||
|
||||
-1
@@ -17,7 +17,6 @@ exports.Setter = Setter;
|
||||
class ValueSetter extends Setter {
|
||||
constructor(
|
||||
value,
|
||||
|
||||
validateValue,
|
||||
|
||||
setValue,
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import type { ContextFn, DateArg } from "../../types.js";
|
||||
import type { ParseFlags, ParserOptions } from "./types.js";
|
||||
import type { ContextFn, DateArg } from "../../types.ts";
|
||||
import type { ParseFlags, ParserOptions } from "./types.ts";
|
||||
export declare abstract class Setter {
|
||||
abstract priority: number;
|
||||
subPriority: number;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import type { ContextFn, DateArg } from "../../types.js";
|
||||
import type { ParseFlags, ParserOptions } from "./types.js";
|
||||
import type { ContextFn, DateArg } from "../../types.ts";
|
||||
import type { ParseFlags, ParserOptions } from "./types.ts";
|
||||
export declare abstract class Setter {
|
||||
abstract priority: number;
|
||||
subPriority: number;
|
||||
|
||||
-1
@@ -14,7 +14,6 @@ export class Setter {
|
||||
export class ValueSetter extends Setter {
|
||||
constructor(
|
||||
value,
|
||||
|
||||
validateValue,
|
||||
|
||||
setValue,
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
import type { Parser } from "./Parser.js";
|
||||
import type { Parser } from "./Parser.ts";
|
||||
export declare const parsers: Record<string, Parser<any>>;
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
import type { Parser } from "./Parser.js";
|
||||
import type { Parser } from "./Parser.ts";
|
||||
export declare const parsers: Record<string, Parser<any>>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { LocaleDayPeriod, Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { LocaleDayPeriod, Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class AMPMMidnightParser extends Parser<LocaleDayPeriod> {
|
||||
priority: number;
|
||||
parse(
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { LocaleDayPeriod, Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { LocaleDayPeriod, Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class AMPMMidnightParser extends Parser<LocaleDayPeriod> {
|
||||
priority: number;
|
||||
parse(
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { LocaleDayPeriod, Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { LocaleDayPeriod, Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class AMPMParser extends Parser<LocaleDayPeriod> {
|
||||
priority: number;
|
||||
parse(
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { LocaleDayPeriod, Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { LocaleDayPeriod, Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class AMPMParser extends Parser<LocaleDayPeriod> {
|
||||
priority: number;
|
||||
parse(
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class DateParser extends Parser<number> {
|
||||
priority: number;
|
||||
subPriority: number;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class DateParser extends Parser<number> {
|
||||
priority: number;
|
||||
subPriority: number;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class DayOfYearParser extends Parser<number> {
|
||||
priority: number;
|
||||
subpriority: number;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class DayOfYearParser extends Parser<number> {
|
||||
priority: number;
|
||||
subpriority: number;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.ts";
|
||||
export declare class DayParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.ts";
|
||||
export declare class DayParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { LocaleDayPeriod, Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { LocaleDayPeriod, Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class DayPeriodParser extends Parser<LocaleDayPeriod> {
|
||||
priority: number;
|
||||
parse(
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { LocaleDayPeriod, Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { LocaleDayPeriod, Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class DayPeriodParser extends Parser<LocaleDayPeriod> {
|
||||
priority: number;
|
||||
parse(
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import type { Era } from "../../../types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import type { Era } from "../../../types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class EraParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<Era>;
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import type { Era } from "../../../types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import type { Era } from "../../../types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class EraParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<Era>;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class ExtendedYearParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string): ParseResult<number>;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class ExtendedYearParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string): ParseResult<number>;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class FractionOfSecondParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string): ParseResult<number>;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class FractionOfSecondParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class Hour0To11Parser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class Hour0To11Parser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class Hour0to23Parser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class Hour0to23Parser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class Hour1To24Parser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class Hour1To24Parser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class Hour1to12Parser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class Hour1to12Parser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class ISODayParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class ISODayParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class ISOTimezoneParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string): ParseResult<number>;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class ISOTimezoneParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string): ParseResult<number>;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class ISOTimezoneWithZParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string): ParseResult<number>;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class ISOTimezoneWithZParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class ISOWeekParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class ISOWeekParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class ISOWeekYearParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string): ParseResult<number>;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class ISOWeekYearParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.ts";
|
||||
export declare class LocalDayParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.ts";
|
||||
export declare class LocalDayParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.ts";
|
||||
export declare class LocalWeekParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.ts";
|
||||
export declare class LocalWeekParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.js";
|
||||
import type { YearParserValue } from "./YearParser.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.ts";
|
||||
import type { YearParserValue } from "./YearParser.ts";
|
||||
export declare class LocalWeekYearParser extends Parser<YearParserValue> {
|
||||
priority: number;
|
||||
parse(
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.js";
|
||||
import type { YearParserValue } from "./YearParser.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.ts";
|
||||
import type { YearParserValue } from "./YearParser.ts";
|
||||
export declare class LocalWeekYearParser extends Parser<YearParserValue> {
|
||||
priority: number;
|
||||
parse(
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class MinuteParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class MinuteParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class MonthParser extends Parser<number> {
|
||||
incompatibleTokens: string[];
|
||||
priority: number;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class MonthParser extends Parser<number> {
|
||||
incompatibleTokens: string[];
|
||||
priority: number;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class QuarterParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class QuarterParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class SecondParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class SecondParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.ts";
|
||||
export declare class StandAloneLocalDayParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult, ParserOptions } from "../types.ts";
|
||||
export declare class StandAloneLocalDayParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class StandAloneMonthParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class StandAloneMonthParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class StandAloneQuarterParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class StandAloneQuarterParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string, token: string, match: Match): ParseResult<number>;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class TimestampMillisecondsParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string): ParseResult<number>;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class TimestampMillisecondsParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string): ParseResult<number>;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class TimestampSecondsParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string): ParseResult<number>;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export declare class TimestampSecondsParser extends Parser<number> {
|
||||
priority: number;
|
||||
parse(dateString: string): ParseResult<number>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export interface YearParserValue {
|
||||
year: number;
|
||||
isTwoDigitYear: boolean;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import type { Match } from "../../../locale/types.js";
|
||||
import { Parser } from "../Parser.js";
|
||||
import type { ParseFlags, ParseResult } from "../types.js";
|
||||
import type { Match } from "../../../locale/types.ts";
|
||||
import { Parser } from "../Parser.ts";
|
||||
import type { ParseFlags, ParseResult } from "../types.ts";
|
||||
export interface YearParserValue {
|
||||
year: number;
|
||||
isTwoDigitYear: boolean;
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ import type {
|
||||
LocalizedOptions,
|
||||
FirstWeekContainsDateOptions,
|
||||
WeekOptions,
|
||||
} from "../../types.js";
|
||||
} from "../../types.ts";
|
||||
export interface ParseFlags {
|
||||
timestampIsSet?: boolean;
|
||||
era?: number;
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ import type {
|
||||
LocalizedOptions,
|
||||
FirstWeekContainsDateOptions,
|
||||
WeekOptions,
|
||||
} from "../../types.js";
|
||||
} from "../../types.ts";
|
||||
export interface ParseFlags {
|
||||
timestampIsSet?: boolean;
|
||||
era?: number;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import type { LocaleDayPeriod } from "../../locale/types.js";
|
||||
import type { ParseResult } from "./types.js";
|
||||
import type { LocaleDayPeriod } from "../../locale/types.ts";
|
||||
import type { ParseResult } from "./types.ts";
|
||||
export declare function mapValue<TInput, TResult>(
|
||||
parseFnResult: ParseResult<TInput>,
|
||||
mapFn: (value: TInput) => TResult,
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import type { LocaleDayPeriod } from "../../locale/types.js";
|
||||
import type { ParseResult } from "./types.js";
|
||||
import type { LocaleDayPeriod } from "../../locale/types.ts";
|
||||
import type { ParseResult } from "./types.ts";
|
||||
export declare function mapValue<TInput, TResult>(
|
||||
parseFnResult: ParseResult<TInput>,
|
||||
mapFn: (value: TInput) => TResult,
|
||||
|
||||
Reference in New Issue
Block a user