20 lines
339 B
TypeScript
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;
|
|
}
|