Skip to content

Instantly share code, notes, and snippets.

@rzymek
Last active December 23, 2020 14:14
Show Gist options
  • Save rzymek/4499dbbc0f40fd0440d816404b3a2a75 to your computer and use it in GitHub Desktop.
Save rzymek/4499dbbc0f40fd0440d816404b3a2a75 to your computer and use it in GitHub Desktop.
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