@alextheman/utility 1.23.0 → 1.24.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/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -55,6 +55,8 @@ declare const uuidSchema: z.core.$ZodBranded<z.ZodUUID, "UUID">;
|
|
|
55
55
|
type UUID = z.infer<typeof uuidSchema>;
|
|
56
56
|
declare function parseUUID(UUID: unknown): UUID;
|
|
57
57
|
|
|
58
|
+
type NonUndefined<T> = T extends undefined ? never : T;
|
|
59
|
+
|
|
58
60
|
/**
|
|
59
61
|
* @deprecated validateUUID() is deprecated in favour of parseUUID()
|
|
60
62
|
*/
|
|
@@ -64,4 +66,4 @@ declare function wait(seconds: number): Promise<void>;
|
|
|
64
66
|
|
|
65
67
|
declare function interpolateObjects(strings: TemplateStringsArray, ...values: unknown[]): string;
|
|
66
68
|
|
|
67
|
-
export { APIError, type Email, type Env, type HTTPErrorCodes, type UUID, addDaysToDate, appendSemicolon, convertFileToBase64, fillArray, fillArrayAsync, formatDateAndTime, getRandomNumber, httpErrorCodeLookup, interpolateObjects, isLeapYear, isMonthlyMultiple, isSameDate, omitProperties, parseEmail, parseEnv, parseUUID, randomiseArray, range, truncate, validateUUID, wait };
|
|
69
|
+
export { APIError, type Email, type Env, type HTTPErrorCodes, type NonUndefined, type UUID, addDaysToDate, appendSemicolon, convertFileToBase64, fillArray, fillArrayAsync, formatDateAndTime, getRandomNumber, httpErrorCodeLookup, interpolateObjects, isLeapYear, isMonthlyMultiple, isSameDate, omitProperties, parseEmail, parseEnv, parseUUID, randomiseArray, range, truncate, validateUUID, wait };
|
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,8 @@ declare const uuidSchema: z.core.$ZodBranded<z.ZodUUID, "UUID">;
|
|
|
55
55
|
type UUID = z.infer<typeof uuidSchema>;
|
|
56
56
|
declare function parseUUID(UUID: unknown): UUID;
|
|
57
57
|
|
|
58
|
+
type NonUndefined<T> = T extends undefined ? never : T;
|
|
59
|
+
|
|
58
60
|
/**
|
|
59
61
|
* @deprecated validateUUID() is deprecated in favour of parseUUID()
|
|
60
62
|
*/
|
|
@@ -64,4 +66,4 @@ declare function wait(seconds: number): Promise<void>;
|
|
|
64
66
|
|
|
65
67
|
declare function interpolateObjects(strings: TemplateStringsArray, ...values: unknown[]): string;
|
|
66
68
|
|
|
67
|
-
export { APIError, type Email, type Env, type HTTPErrorCodes, type UUID, addDaysToDate, appendSemicolon, convertFileToBase64, fillArray, fillArrayAsync, formatDateAndTime, getRandomNumber, httpErrorCodeLookup, interpolateObjects, isLeapYear, isMonthlyMultiple, isSameDate, omitProperties, parseEmail, parseEnv, parseUUID, randomiseArray, range, truncate, validateUUID, wait };
|
|
69
|
+
export { APIError, type Email, type Env, type HTTPErrorCodes, type NonUndefined, type UUID, addDaysToDate, appendSemicolon, convertFileToBase64, fillArray, fillArrayAsync, formatDateAndTime, getRandomNumber, httpErrorCodeLookup, interpolateObjects, isLeapYear, isMonthlyMultiple, isSameDate, omitProperties, parseEmail, parseEnv, parseUUID, randomiseArray, range, truncate, validateUUID, wait };
|