mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
docs: typecheck
This commit is contained in:
@@ -7,6 +7,7 @@ const groups = [{
|
||||
return []
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
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 }))
|
||||
|
||||
Reference in New Issue
Block a user