Files
upstream-mirror 3a013ccdfe
Some checks failed
autofix.ci / autofix (push) Failing after 4s
Release / Release (push) Has been skipped
GitHub Actions Security Analysis / Run zizmor (push) Failing after 2s
snapshot of https://github.com/TanStack/query.git (main, 2026-09-16; blobs > 131072B omitted)
2026-09-16 01:13:08 +05:00

29 lines
541 B
TypeScript

export interface Todo {
id: string
text: string
createdAt: number
}
export const todos: Array<Todo> = [
{
id: crypto.randomUUID(),
text: 'Buy groceries',
createdAt: Date.now() - 3000,
},
{
id: crypto.randomUUID(),
text: 'Walk the dog',
createdAt: Date.now() - 2000,
},
{
id: crypto.randomUUID(),
text: 'Read a book',
createdAt: Date.now() - 1000,
},
]
export async function getTodos(): Promise<Array<Todo>> {
await new Promise((resolve) => setTimeout(resolve, 200))
return todos
}