@hg-ts/validation 0.1.117 → 0.2.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/dto.d.ts +2 -2
- package/dist/dto.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/dto.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { infer as ZodInfer, ZodSchema, ZodType, ZodTypeDef } from 'zod';
|
|
2
|
-
export type ZodDto<TOutput = any> = {
|
|
2
|
+
export type ZodDto<TOutput = any, TInput = TOutput> = {
|
|
3
3
|
new (): TOutput;
|
|
4
4
|
isZodDto: true;
|
|
5
|
-
schema: ZodSchema<TOutput, ZodTypeDef,
|
|
5
|
+
schema: ZodSchema<TOutput, ZodTypeDef, TInput>;
|
|
6
6
|
create(input: unknown): TOutput;
|
|
7
7
|
};
|
|
8
8
|
export declare function createZodDto<T extends ZodType>(schema: T): ZodDto<ZodInfer<T>>;
|
package/dist/dto.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dto.d.ts","sourceRoot":"","sources":["../src/dto.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,IAAI,QAAQ,EACjB,SAAS,EACT,OAAO,EACP,UAAU,EACV,MAAM,KAAK,CAAC;AAEb,MAAM,MAAM,MAAM,CAAC,OAAO,GAAG,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"dto.d.ts","sourceRoot":"","sources":["../src/dto.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,IAAI,QAAQ,EACjB,SAAS,EACT,OAAO,EACP,UAAU,EACV,MAAM,KAAK,CAAC;AAEb,MAAM,MAAM,MAAM,CAAC,OAAO,GAAG,GAAG,EAAE,MAAM,GAAG,OAAO,IAAI;IACrD,QAAQ,OAAO,CAAC;IAChB,QAAQ,EAAE,IAAI,CAAC;IACf,MAAM,EAAE,SAAS,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC/C,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;CAChC,CAAA;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,OAAO,EAC7C,MAAM,EAAE,CAAC,GACP,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAWrB;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAMxD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hg-ts/validation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js"
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"lint:ts:fix": "lint-ts --fix"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@hg-ts-config/typescript": "0.
|
|
19
|
-
"@hg-ts/exception": "0.
|
|
20
|
-
"@hg-ts/linter": "0.
|
|
21
|
-
"@hg-ts/types": "0.
|
|
18
|
+
"@hg-ts-config/typescript": "0.2.0",
|
|
19
|
+
"@hg-ts/exception": "0.2.0",
|
|
20
|
+
"@hg-ts/linter": "0.2.0",
|
|
21
|
+
"@hg-ts/types": "0.2.0",
|
|
22
22
|
"@types/node": "22.10.6",
|
|
23
23
|
"eslint": "9.18.0",
|
|
24
24
|
"reflect-metadata": "0.2.2",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"typescript": "5.7.3"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@hg-ts/exception": "0.
|
|
30
|
+
"@hg-ts/exception": "0.2.0",
|
|
31
31
|
"reflect-metadata": "*",
|
|
32
32
|
"tslib": "*"
|
|
33
33
|
},
|