use types instead of interfaces

This commit is contained in:
Thomas Ruoff
2021-06-08 23:02:52 +02:00
parent dbe3904759
commit 498f212ee0
10 changed files with 56 additions and 71 deletions

View File

@@ -5,7 +5,7 @@ export enum USER_ROLE {
ADMIN = 'admin',
}
export interface UserData {
export type UserData = {
username: string
role: USER_ROLE
}