mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-24 00:40:34 +01:00
docs: types (#2186)
This commit is contained in:
@@ -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] = {
|
||||
|
||||
Reference in New Issue
Block a user