docs: typecheck

This commit is contained in:
Benjamin Canac
2024-07-23 11:51:02 +02:00
parent 64e8a87073
commit b2e0566c16
3 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ const groups = [{
return []
}
const users = await $fetch<any[]>('https://jsonplaceholder.typicode.com/users', { params: { q } })
const users: any[] = await $fetch('https://jsonplaceholder.typicode.com/users', { params: { q } })
return users.map(user => ({ id: user.id, label: user.name, suffix: user.email }))
}

View File

@@ -5,7 +5,7 @@ const selected = ref()
async function search (q: string) {
loading.value = true
const users = await $fetch<any[]>('https://jsonplaceholder.typicode.com/users', { params: { q } })
const users: any[] = await $fetch('https://jsonplaceholder.typicode.com/users', { params: { q } })
loading.value = false

View File

@@ -5,7 +5,7 @@ const selected = ref([])
async function search (q: string) {
loading.value = true
const users = await $fetch<any[]>('https://jsonplaceholder.typicode.com/users', { params: { q } })
const users: any[] = await $fetch('https://jsonplaceholder.typicode.com/users', { params: { q } })
loading.value = false