Skip to content

Commit

Permalink
fix: export needed types
Browse files Browse the repository at this point in the history
  • Loading branch information
3cp committed Jun 12, 2020
1 parent 7fc992d commit a596243
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
import {EventAggregator} from 'aurelia-event-aggregator';
import {trPreview, liPreview, unknownTagPreview, defaultPreview} from './preview-drawers';

interface SourceDelegate {
export interface SourceDelegate {
dndElement?: Element;
dndModel(): any;
dndCanDrag?(): boolean;
dndPreview?(model: any): Element;
}

interface SourceOptions {
export interface SourceOptions {
element?: Element;
handler?: Element;
noPreview?: boolean;
Expand All @@ -29,35 +29,35 @@ interface Rect {
readonly height: number;
}

interface DndLocation {
export interface DndLocation {
mouseStartAt: Point;
mouseEndAt: Point;
sourceElementRect: Rect;
previewElementRect: Rect;
targetElementRect: Rect;
}

declare interface TargetDelegateInjectedDnd {
export interface TargetDelegateInjectedDnd {
isProcessing: boolean;
model?: any;
canDrop?: boolean;
isHovering?: boolean;
isHoveringShallowly?: boolean;
}

interface TargetDelegate {
export interface TargetDelegate {
dndElement?: Element;
dnd?: TargetDelegateInjectedDnd;
dndCanDrop(model: any): boolean;
dndDrop(location: DndLocation): void;
dndHover?(location: DndLocation): void;
}

interface TargetOptions {
export interface TargetOptions {
element?: Element;
}

type PreviewDrawer = (element: Element) => Element | void;
export type PreviewDrawer = (element: Element) => Element | void;

interface LandingTargets {
shallowTarget: DndTarget | void;
Expand Down

0 comments on commit a596243

Please sign in to comment.