mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
use types instead of interfaces
This commit is contained in:
@@ -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[]
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ export enum USER_ROLE {
|
||||
ADMIN = 'admin',
|
||||
}
|
||||
|
||||
export interface UserData {
|
||||
export type UserData = {
|
||||
username: string
|
||||
role: USER_ROLE
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user