1 | import * as en from "./locales/en";
|
2 | import { Chrono, Parser, Refiner } from "./chrono";
|
3 | import { ParsingResult, ParsingComponents, ReferenceWithTimezone } from "./results";
|
4 | import { Component, ParsedComponents, ParsedResult, ParsingOption, ParsingReference, Meridiem, Weekday } from "./types";
|
5 |
|
6 | export { en, Chrono, Parser, Refiner, ParsingResult, ParsingComponents, ReferenceWithTimezone };
|
7 | export { Component, ParsedComponents, ParsedResult, ParsingOption, ParsingReference, Meridiem, Weekday };
|
8 |
|
9 |
|
10 | import * as de from "./locales/de";
|
11 | import * as fr from "./locales/fr";
|
12 | import * as ja from "./locales/ja";
|
13 | import * as pt from "./locales/pt";
|
14 | import * as nl from "./locales/nl";
|
15 | import * as zh from "./locales/zh";
|
16 | import * as ru from "./locales/ru";
|
17 | import * as es from "./locales/es";
|
18 | import * as uk from "./locales/uk";
|
19 |
|
20 | export { de, fr, ja, pt, nl, zh, ru, es, uk };
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export const strict = en.strict;
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | export const casual = en.casual;
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | export function parse(text: string, ref?: ParsingReference | Date, option?: ParsingOption): ParsedResult[] {
|
36 | return casual.parse(text, ref, option);
|
37 | }
|
38 |
|
39 |
|
40 |
|
41 |
|
42 | export function parseDate(text: string, ref?: ParsingReference | Date, option?: ParsingOption): Date | null {
|
43 | return casual.parseDate(text, ref, option);
|
44 | }
|