diff options
Diffstat (limited to 'server/types/models/user/user-registration.ts')
-rw-r--r-- | server/types/models/user/user-registration.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/server/types/models/user/user-registration.ts b/server/types/models/user/user-registration.ts new file mode 100644 index 000000000..216423cc9 --- /dev/null +++ b/server/types/models/user/user-registration.ts | |||
@@ -0,0 +1,15 @@ | |||
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> | ||