gitbutler/app/src/global.d.ts

10 lines
471 B
TypeScript
Raw Normal View History

2023-06-02 12:46:47 +03:00
declare type Item = import('svelte-dnd-action').Item;
declare type DndEvent<ItemType = Item> = import('svelte-dnd-action/typings').DndEvent<ItemType>;
2023-06-02 12:46:47 +03:00
declare namespace svelte.JSX {
2023-06-20 14:08:00 +03:00
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2023-06-02 12:46:47 +03:00
interface HTMLAttributes<T> {
onconsider?: (event: CustomEvent<DndEvent<ItemType>> & { target: EventTarget & T }) => void;
onfinalize?: (event: CustomEvent<DndEvent<ItemType>> & { target: EventTarget & T }) => void;
}
}