TreatWarningsAsErrors
const newThreadthread = "modified thread object"await kv .atomic() .set(["thread", id], thread) .set(["thread", "last_updated", lastUpdated, id], thread) .delete(["thread", "last_updated", oldLastUpdated, id]) .commit()
const thread = await kv.get<Thread>(["thread", id])await kv .atomic() .delete(["thread", id]) .delete(["thread", "last_updated", thread.value.lastUpdated, id]) .commit()
kv.list({ prefix: ["threads", "last_updated"] }, { limit: 20 })