indicator-ui 0.0.139 → 0.0.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Locale } from "date-fns";
|
|
2
|
+
export type ISO8601FormatNameType = 'iso-8601';
|
|
2
3
|
type SaveFormatDateOptionsType = {
|
|
3
4
|
/**
|
|
4
5
|
* Стартовый формат.
|
|
5
6
|
* */
|
|
6
|
-
from?: string;
|
|
7
|
+
from?: string | ISO8601FormatNameType;
|
|
7
8
|
/**
|
|
8
9
|
* Конечный формат.
|
|
9
10
|
* */
|
|
10
|
-
to?: string;
|
|
11
|
+
to?: string | ISO8601FormatNameType;
|
|
11
12
|
/**
|
|
12
13
|
* Возвращать ли null при неудачном форматирование.
|
|
13
14
|
*
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Locale } from "date-fns";
|
|
2
|
+
import { ISO8601FormatNameType } from "./saveFormatDate";
|
|
2
3
|
type SaveParseDateOptionsType = {
|
|
3
4
|
/**
|
|
4
5
|
* Стартовый формат.
|
|
5
6
|
* */
|
|
6
|
-
from?: string;
|
|
7
|
+
from?: string | ISO8601FormatNameType;
|
|
7
8
|
/**
|
|
8
9
|
* Возвращать ли null при неудачном форматирование.
|
|
9
10
|
*
|