blob: 216423cc993f69ea12360b07683b5d9bdfd2c338 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import { UserRegistrationModel } from '@server/models/user/user-registration'
import { PickWith } from '@shared/typescript-utils'
import { MUserId } from './user'
type Use<K extends keyof UserRegistrationModel, M> = PickWith<UserRegistrationModel, K, M>
// ############################################################################
export type MRegistration = Omit<UserRegistrationModel, 'User'>
// ############################################################################
export type MRegistrationFormattable =
MRegistration &
Use<'User', MUserId>
|