@alextheman/utility 4.16.0 → 4.16.2
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +8 -4
package/dist/index.d.cts
CHANGED
|
@@ -751,7 +751,7 @@ declare function parseVersionType(data: unknown): VersionType;
|
|
|
751
751
|
*
|
|
752
752
|
* @returns The parsed data from the Zod schema.
|
|
753
753
|
*/
|
|
754
|
-
declare function parseZodSchema<SchemaType extends ZodType, ErrorType extends Error>(schema: SchemaType, data: unknown, onError?: ErrorType | ((zodError: ZodError) => ErrorType | void)): z$1.infer<SchemaType>;
|
|
754
|
+
declare function parseZodSchema<SchemaType extends ZodType, ErrorType extends Error = DataError>(schema: SchemaType, data: unknown, onError?: ErrorType | ((zodError: ZodError) => ErrorType | void)): z$1.infer<SchemaType>;
|
|
755
755
|
//#endregion
|
|
756
756
|
//#region src/functions/parsers/zod/parseZodSchemaAsync.d.ts
|
|
757
757
|
/**
|
|
@@ -770,7 +770,7 @@ declare function parseZodSchema<SchemaType extends ZodType, ErrorType extends Er
|
|
|
770
770
|
*
|
|
771
771
|
* @returns The parsed data from the Zod schema.
|
|
772
772
|
*/
|
|
773
|
-
declare function parseZodSchemaAsync<SchemaType extends ZodType, ErrorType extends Error>(schema: SchemaType, data: unknown, onError?: ErrorType | ((zodError: ZodError) => ErrorType | void)): Promise<z$1.infer<SchemaType>>;
|
|
773
|
+
declare function parseZodSchemaAsync<SchemaType extends ZodType, ErrorType extends Error = DataError>(schema: SchemaType, data: unknown, onError?: ErrorType | ((zodError: ZodError) => ErrorType | void)): Promise<z$1.infer<SchemaType>>;
|
|
774
774
|
//#endregion
|
|
775
775
|
//#region src/functions/recursive/deepCopy.d.ts
|
|
776
776
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -751,7 +751,7 @@ declare function parseVersionType(data: unknown): VersionType;
|
|
|
751
751
|
*
|
|
752
752
|
* @returns The parsed data from the Zod schema.
|
|
753
753
|
*/
|
|
754
|
-
declare function parseZodSchema<SchemaType extends ZodType, ErrorType extends Error>(schema: SchemaType, data: unknown, onError?: ErrorType | ((zodError: ZodError) => ErrorType | void)): z$1.infer<SchemaType>;
|
|
754
|
+
declare function parseZodSchema<SchemaType extends ZodType, ErrorType extends Error = DataError>(schema: SchemaType, data: unknown, onError?: ErrorType | ((zodError: ZodError) => ErrorType | void)): z$1.infer<SchemaType>;
|
|
755
755
|
//#endregion
|
|
756
756
|
//#region src/functions/parsers/zod/parseZodSchemaAsync.d.ts
|
|
757
757
|
/**
|
|
@@ -770,7 +770,7 @@ declare function parseZodSchema<SchemaType extends ZodType, ErrorType extends Er
|
|
|
770
770
|
*
|
|
771
771
|
* @returns The parsed data from the Zod schema.
|
|
772
772
|
*/
|
|
773
|
-
declare function parseZodSchemaAsync<SchemaType extends ZodType, ErrorType extends Error>(schema: SchemaType, data: unknown, onError?: ErrorType | ((zodError: ZodError) => ErrorType | void)): Promise<z$1.infer<SchemaType>>;
|
|
773
|
+
declare function parseZodSchemaAsync<SchemaType extends ZodType, ErrorType extends Error = DataError>(schema: SchemaType, data: unknown, onError?: ErrorType | ((zodError: ZodError) => ErrorType | void)): Promise<z$1.infer<SchemaType>>;
|
|
774
774
|
//#endregion
|
|
775
775
|
//#region src/functions/recursive/deepCopy.d.ts
|
|
776
776
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/utility",
|
|
3
|
-
"version": "4.16.
|
|
3
|
+
"version": "4.16.2",
|
|
4
4
|
"description": "Helpful utility functions.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,9 +9,13 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"author": "alextheman",
|
|
11
11
|
"type": "module",
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
|
+
"require": "./dist/index.cjs"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
15
19
|
"files": [
|
|
16
20
|
"dist"
|
|
17
21
|
],
|