nuxt-hs-ui 2.0.24 → 2.0.25
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/dist/module.json
CHANGED
|
@@ -5,7 +5,7 @@ export type OpUnitType = dayjs.OpUnitType;
|
|
|
5
5
|
export declare const DayjsInit: (f?: boolean) => void;
|
|
6
6
|
export declare const defaultTimezone = "Asia/Tokyo";
|
|
7
7
|
/** dayjsオブジェクト生成 */
|
|
8
|
-
export declare const Dayjs: (arg?: string | number | Dayjs | Date | null | undefined) => Dayjs;
|
|
8
|
+
export declare const Dayjs: (arg?: string | number | Dayjs | Date | null | undefined, format?: string | undefined) => Dayjs;
|
|
9
9
|
/** dayjsオブジェクト生成
|
|
10
10
|
* - 日付返還できない場合 Nullを返す */
|
|
11
11
|
export declare const DayjsNullable: (date?: string | null | Date | undefined) => Dayjs | null;
|
|
@@ -15,9 +15,9 @@ export const DayjsInit = (f = false) => {
|
|
|
15
15
|
dayjs.locale(ja);
|
|
16
16
|
};
|
|
17
17
|
export const defaultTimezone = "Asia/Tokyo";
|
|
18
|
-
export const Dayjs = (arg) => {
|
|
19
|
-
if (arg === null || arg === void 0) return dayjs();
|
|
20
|
-
return dayjs(arg);
|
|
18
|
+
export const Dayjs = (arg, format) => {
|
|
19
|
+
if (arg === null || arg === void 0) return dayjs(arg, format);
|
|
20
|
+
return dayjs(arg, format);
|
|
21
21
|
};
|
|
22
22
|
export const DayjsNullable = (date) => {
|
|
23
23
|
try {
|