Skip to content

Instantly share code, notes, and snippets.

@MariusBongarts
Created August 7, 2021 10:15
Show Gist options
  • Save MariusBongarts/29bb9f21142363e474526043acb27955 to your computer and use it in GitHub Desktop.
Save MariusBongarts/29bb9f21142363e474526043acb27955 to your computer and use it in GitHub Desktop.
DRY - User
type UserRole = 'ADMIN' | 'USER';
interface User {
id: string;
isActivated: boolean;
role: UserRole;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment