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

@@ -2,13 +2,13 @@ import { startOfYear } from 'date-fns'
import { nowInTz } from '../helpers/date'
import { getBookingByUUID, getBookings } from '../db/index'
export interface ServerSideBooking {
export type ServerSideBooking = {
props: {
booking: object
}
}
export interface ServerSideRecentBooking {
export type ServerSideRecentBooking = {
props: {
bookings: object[]
}

View File

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