]>
Commit | Line | Data |
---|---|---|
e364e31e C |
1 | import { UserRegistrationModel } from '@server/models/user/user-registration' |
2 | import { PickWith } from '@shared/typescript-utils' | |
3 | import { MUserId } from './user' | |
4 | ||
5 | type Use<K extends keyof UserRegistrationModel, M> = PickWith<UserRegistrationModel, K, M> | |
6 | ||
7 | // ############################################################################ | |
8 | ||
9 | export type MRegistration = Omit<UserRegistrationModel, 'User'> | |
10 | ||
11 | // ############################################################################ | |
12 | ||
13 | export type MRegistrationFormattable = | |
14 | MRegistration & | |
15 | Use<'User', MUserId> |