@ws-ui/formatter 0.1.29 → 1.6.0
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.
- package/README.md +1 -1
- package/dist/duration.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +6124 -5913
- package/dist/index.es.js.map +1 -1
- package/package.json +7 -26
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
## Formatter
|
|
1
|
+
## Formatter
|
package/dist/duration.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type Format = 'Simple' | 'Distance' | 'Without seconds' | 'Distance With Suffix' | 'Strict Distance' | 'Strict Distance With Suffix';
|
|
1
|
+
export type Format = 'Simple' | 'Distance' | 'Without seconds' | 'Distance With Suffix' | 'Strict Distance' | 'Strict Distance With Suffix' | 'Simple AM/PM' | 'Without seconds AM/PM';
|
|
2
2
|
export declare function sanitizeLocale(locale: string): string;
|
|
3
3
|
export declare function formatDuration(value: string | number | Date, format?: Format): string;
|
|
4
4
|
export declare function parseDuration(value: string): number;
|