export const notes = [ { id: "reed", text: "Fictional reeds border the marsh trail." }, { id: "fern", text: "Fictional ferns shade the woodland path." }, ] as const; export function inspectNote(id: string): (typeof notes)[number] { const note = notes.find(candidate => candidate.id === id); if (!note) throw new Error(`Unknown note id: ${id}. Discover ids before selecting.`); return note; }