@umbraco-deploy/backoffice 17.3.0-rc1 → 17.3.0-rc2
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/package.json +1 -1
- package/types/util.d.ts +12 -0
package/package.json
CHANGED
package/types/util.d.ts
CHANGED
|
@@ -89,3 +89,15 @@ export declare function download(blob: Blob, name: string): any;
|
|
|
89
89
|
* download(data, 'package.xml', 'text/xml');
|
|
90
90
|
*/
|
|
91
91
|
export declare function download(data: File | Blob | BlobPart, name: string, type: string): any;
|
|
92
|
+
/**
|
|
93
|
+
* Converts a datetime-local input value (local time, no offset) to a UTC ISO string for the server.
|
|
94
|
+
* @param value The datetime-local input value.
|
|
95
|
+
* @returns The UTC ISO string, or null when empty or invalid.
|
|
96
|
+
*/
|
|
97
|
+
export declare function toUtcIsoString(value: string | null | undefined): string | null;
|
|
98
|
+
/**
|
|
99
|
+
* Formats a date as a datetime-local input value (local time, no offset), e.g. 2021-01-01T11:00.
|
|
100
|
+
* @param date The date to format.
|
|
101
|
+
* @returns The formatted datetime-local value.
|
|
102
|
+
*/
|
|
103
|
+
export declare function toDateTimeLocalString(date: Date): string;
|