From e20f4e455700328398a55e2f70eb6a2fc3c7f15c Mon Sep 17 00:00:00 2001 From: muntaxir4 Date: Tue, 3 Dec 2024 22:39:14 +0530 Subject: [PATCH] feat(schema): Add User type inference from UserSchema --- packages/schema/src/user/index.types.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/schema/src/user/index.types.ts b/packages/schema/src/user/index.types.ts index 7b0f7a7f..e96fa733 100644 --- a/packages/schema/src/user/index.types.ts +++ b/packages/schema/src/user/index.types.ts @@ -1,5 +1,6 @@ import { z } from 'zod' import { + UserSchema, GetSelfResponseSchema, UpdateSelfRequestSchema, UpdateSelfResponseSchema, @@ -11,6 +12,8 @@ import { ResendEmailChangeOTPResponseSchema } from '.' +export type User = z.infer + export type GetSelfResponse = z.infer export type UpdateSelfRequest = z.infer