diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-31 10:46:08 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-31 10:46:08 +0700 |
| commit | c8c7690c49958c1f8ff0756eda407d7276c536cb (patch) | |
| tree | f82c08a3dba1c4ed215cd41d399e561e786f377a /src-migrate/common/types | |
| parent | 4ad0c430519f3dfc38ec4a6a3fae6b40ba2c5f71 (diff) | |
| parent | 6b221cccd58710682c99db7afbc29322da042880 (diff) | |
Merge branch 'refactor/all' into development
Diffstat (limited to 'src-migrate/common/types')
| -rw-r--r-- | src-migrate/common/types/auth.ts | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src-migrate/common/types/auth.ts b/src-migrate/common/types/auth.ts index ca7b562a..5909584a 100644 --- a/src-migrate/common/types/auth.ts +++ b/src-migrate/common/types/auth.ts @@ -1,4 +1,6 @@ +import { registerSchema } from '../validations/auth'; import { OdooApiProps } from './odoo'; +import * as yup from 'yup'; export type AuthProps = { id: number; @@ -17,13 +19,7 @@ export type AuthProps = { export type AuthApiProps = OdooApiProps & { result: AuthProps }; -export type RegisterProps = { - name: string; - email: string; - password: string; - company: string; - phone: string; -}; +export type RegisterProps = yup.InferType<typeof registerSchema>; export type RegisterResApiProps = { register: boolean; |
