Initial commit
This commit is contained in:
9
app/lib/definitions.ts
Normal file
9
app/lib/definitions.ts
Normal file
@ -0,0 +1,9 @@
|
||||
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';
|
||||
};
|
||||
Reference in New Issue
Block a user