docs: types (#2186)

This commit is contained in:
Romain Hamel
2024-09-12 11:10:23 +02:00
committed by GitHub
parent 26e5ac80b6
commit 523493105e
19 changed files with 54 additions and 47 deletions

View File

@@ -26,7 +26,7 @@ export function useToast() {
return body
}
function update(id: string | number, toast: Omit<Partial<Toast>, "id">) {
function update(id: string | number, toast: Omit<Partial<Toast>, 'id'>) {
const index = toasts.value.findIndex((t: Toast) => t.id === id)
if (index !== -1) {
toasts.value[index] = {