export class TodoStore {
  #items = [];

  add(text) {
    const id = Date.now();
    this.#items.push({ id, text, done: false });
    return id;
  }

  list() {
    return [...this.#items];
  }

  remove(id) {
    this.#items = this.#items.filter(i => i.id !== id);
  }

  // complete(id) deliberately missing — implement me!
}
