Files
splitt-the-bill/shared/types.ts
T
anbraten cbe1b42f6e
tinyedge/deploy Deployed by TinyEdge
🐛 add env to useDb and apply prettier
2026-08-07 13:28:26 +02:00

20 lines
339 B
TypeScript

export type ParticipantId = number;
export interface Participant {
id: ParticipantId;
name: string;
}
export interface Expense {
id: number;
amountCents: number;
payerId: ParticipantId;
participantIds: ParticipantId[];
}
export interface Settlement {
fromId: ParticipantId;
toId: ParticipantId;
amountCents: number;
}