The List type is used to represent a list of items. It has the following properties:
id
- The unique identifier for the list.listName
- The name of the list.createdAt
- - The unix timestamp (number of milliseconds since Jan 1 1970) of when the item was created. type List = {
id: string;
listName: string;
createdAt: number;
}
{
id: "83eede8f-84c5-43cd-a5f9-07a1e5d7b213";
listName: "My List";
createdAt: 1712419093145;
}
The ListItem type is used to represent an item in a list. It has the following properties:
id
- The unique identifier for the item.itemName
- The name of the item.checked
- A boolean representing whether the item is checked off or not. createdAt
- The unix timestamp (number of milliseconds since Jan 1 1970) of when the item was created. type ListItem = {
id: string;
itemName: string;
checked: boolean;
createdAt: number;
}
{
id: "71915761-c48b-4624-be9d-a76d7e8ee822";
itemName: "Finish Homework";
checked: true;
createdAt: 1712419093145;
}