Skip to content

Commit 0cfddcc

Browse files
committed
One additional export for the Zod adapter
1 parent a55c9cd commit 0cfddcc

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- New validation library: [class-validator](https://github.com/typestack/class-validator)!
1313
- Exported `SuperFormData` and `SuperFormErrors` types for superForm.
14-
- Exported `ZodObjectTypes` and `ZodValidation` types for the Zod adapter.
14+
- Exported `ZodObjectType`, `ZodObjectTypes` and `ZodValidation` types for the Zod adapter.
1515

1616
### Fixed
1717

src/lib/adapters/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ export { superformClient } from './superform.js';
66
export { typebox, typeboxClient } from './typebox.js';
77
export { valibot, valibotClient } from './valibot.js';
88
export { yup, yupClient } from './yup.js';
9-
export { zod, zodClient, type ZodValidation, type ZodObjectTypes } from './zod.js';
9+
export {
10+
zod,
11+
zodClient,
12+
type ZodValidation,
13+
type ZodObjectTypes,
14+
type ZodObjectType
15+
} from './zod.js';
1016
export { vine, vineClient } from './vine.js';
1117
export { schemasafe, schemasafeClient } from './schemasafe.js';
1218
export { superstruct, superstructClient } from './superstruct.js';

src/lib/adapters/zod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type ZodObjectUnion<T extends AnyZodObject> = ZodUnion<
3636
[ZodValidation<T>, ZodValidation<T>, ...ZodValidation<T>[]]
3737
>;
3838

39-
type ZodObjectType = ZodType<Record<string, unknown>, ZodTypeDef, Record<string, unknown>>;
39+
export type ZodObjectType = ZodType<Record<string, unknown>, ZodTypeDef, Record<string, unknown>>;
4040

4141
export type ZodObjectTypes = AnyZodObject | ZodObjectUnion<AnyZodObject> | ZodObjectType;
4242

0 commit comments

Comments
 (0)