@jjdenhertog/ai-driven-development
Version:
AI-driven development workflow with learning capabilities for Claude
10 lines (8 loc) • 315 B
text/typescript
import { API_BASE } from '../constants'
export async function deleteTask(id: string): Promise<unknown> {
const response = await fetch(`${API_BASE}/tasks/${id}`, { method: 'DELETE' })
if (!response.ok) {
throw new Error(`Failed to delete: ${response.statusText}`)
}
return response.json()
}