Last active
December 23, 2020 14:14
-
-
Save rzymek/4499dbbc0f40fd0440d816404b3a2a75 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface User { | |
/** | |
* @type {string} | |
* @memberof User | |
*/ | |
email: string; // 1 | |
/** | |
* @type {string} | |
* @memberof User | |
*/ | |
firstName?: string; | |
/** | |
* User's surname // 2 | |
* @type {string} | |
* @memberof User | |
*/ | |
lastName?: string; | |
/** | |
* @type {Array<string>} | |
* @memberof User | |
*/ | |
roles: Array<UserRolesEnum>; | |
} | |
export enum UserRolesEnum { | |
USER = 'USER', | |
ADMIN = 'ADMIN' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment