Research-Stack/2-Search-Space/search/stract/tools/annotate-results/global.d.ts

13 lines
440 B
TypeScript

declare type Item = import("svelte-dnd-action").Item;
declare type DndEvent<ItemType = Item> =
import("svelte-dnd-action").DndEvent<ItemType>;
declare namespace svelteHTML {
interface HTMLAttributes<T> {
"on:consider"?: (
event: CustomEvent<DndEvent<ItemType>> & { target: EventTarget & T },
) => void;
"on:finalize"?: (
event: CustomEvent<DndEvent<ItemType>> & { target: EventTarget & T },
) => void;
}
}