12 lines
250 B
TypeScript
12 lines
250 B
TypeScript
type TodoItem = { text: string };
|
|
const todoItems: TodoItem[] = [];
|
|
init();
|
|
|
|
// Initial data
|
|
function init() {
|
|
todoItems.push({ text: "Buy milk" });
|
|
todoItems.push({ text: "Buy strawberries" });
|
|
}
|
|
|
|
export { todoItems };
|
|
export type { TodoItem };
|