@ws-ui/formatter 0.1.28 → 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 CHANGED
@@ -1 +1 @@
1
- ## Formatter
1
+ ## Formatter
package/dist/date.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export declare const INVALID_DATE: string;
2
- export declare function parseDateFormat(format: string, locale?: string): any;
2
+ export declare function parseDateFormat(format: string, locale: string): any;
3
3
  export declare function isValidDate(value: Date | number): boolean;
4
- export declare function formatDate(value: Date | number, format: string): string;
4
+ export declare function formatDate(value: Date | number, format: string, language: string): string;
@@ -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;