@jsfsi-core/ts-crossplatform 1.1.10 → 1.1.12
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/index.cjs +4 -4
- package/dist/index.mjs +446 -412
- package/dist/src/datetime/datetime.d.ts +11 -0
- package/package.json +4 -4
|
@@ -2,3 +2,14 @@ export declare function sleep(ms: number): Promise<void>;
|
|
|
2
2
|
export declare function formatDate(date: number, locales?: Intl.LocalesArgument): string;
|
|
3
3
|
export declare function formatTime(date: number, locales?: Intl.LocalesArgument): string;
|
|
4
4
|
export declare function formatDateTime(date: number, locales?: Intl.LocalesArgument): string;
|
|
5
|
+
export type DateInfo = {
|
|
6
|
+
startDate: Date;
|
|
7
|
+
allDay: boolean;
|
|
8
|
+
startTime?: Date;
|
|
9
|
+
endTime?: Date;
|
|
10
|
+
};
|
|
11
|
+
export type DateRange = {
|
|
12
|
+
startDate: Date;
|
|
13
|
+
endDate: Date;
|
|
14
|
+
};
|
|
15
|
+
export declare function convertDateInfoToDateRange({ allDay, startDate, startTime, endTime, }: DateInfo): DateRange;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsfsi-core/ts-crossplatform",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"zod": "4.1.12"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@vitest/coverage-v8": "4.0.
|
|
37
|
-
"vite": "7.
|
|
36
|
+
"@vitest/coverage-v8": "4.0.10",
|
|
37
|
+
"vite": "7.2.2",
|
|
38
38
|
"vite-plugin-dts": "4.5.4",
|
|
39
|
-
"vitest": "4.0.
|
|
39
|
+
"vitest": "4.0.10"
|
|
40
40
|
}
|
|
41
41
|
}
|