Files
Next.jsReactDashbord-maryam/app/lib/definitions.ts
2025-06-14 01:34:32 -07:00

9 lines
281 B
TypeScript

export type Invoice = {
id: string;
customer_id: string;
amount: number;
date: string;
// In TypeScript, this is called a string union type.
// It means that the "status" property can only be one of the two strings: 'pending' or 'paid'.
status: 'pending' | 'paid';
};