UNPKG

557 BTypeScriptView Raw
1import type { Backend, Identifier } from 'dnd-core';
2export interface TestBackendContext {
3 window?: Window;
4 document?: Document;
5}
6export interface TestBackendOptions {
7 onCreate?: (be: ITestBackend) => void;
8}
9export interface ITestBackend extends Backend {
10 didCallSetup: boolean;
11 didCallTeardown: boolean;
12 simulateBeginDrag(sourceIds: Identifier[], options?: any): void;
13 simulatePublishDragSource(): void;
14 simulateHover(targetIds: Identifier[], options?: any): void;
15 simulateDrop(): void;
16 simulateEndDrag(): void;
17}