Skip to content

Commit

Permalink
feat(schema): Add User type inference from UserSchema (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
muntaxir4 authored Dec 3, 2024
1 parent 4398969 commit 84c1db5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/schema/src/user/index.types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { z } from 'zod'
import {
UserSchema,
GetSelfResponseSchema,
UpdateSelfRequestSchema,
UpdateSelfResponseSchema,
Expand All @@ -11,6 +12,8 @@ import {
ResendEmailChangeOTPResponseSchema
} from '.'

export type User = z.infer<typeof UserSchema>

export type GetSelfResponse = z.infer<typeof GetSelfResponseSchema>

export type UpdateSelfRequest = z.infer<typeof UpdateSelfRequestSchema>
Expand Down

0 comments on commit 84c1db5

Please sign in to comment.