Skip to content

Commit

Permalink
fix: fix error in TypeScript def file
Browse files Browse the repository at this point in the history
close #4
  • Loading branch information
3cp committed Jun 26, 2018
1 parent c8f383c commit 717a67a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,27 +42,27 @@ declare interface TargetDelegateInjectedDnd {

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

interface TargetOptions {
element?: Element;
}

type PreviewDrawer = (Element) => Element?;
type PreviewDrawer = (Element) => Element | void;

export declare class DndService {
readonly isProcessing: boolean;
readonly model: any;
public readonly isProcessing: boolean;
public readonly model: any;

addSource(sourceDelegate: SourceDelegate, options?: SourceOptions): void;
removeSource(source: SourceDelegate | Element): void;
public addSource(sourceDelegate: SourceDelegate, options?: SourceOptions): void;
public removeSource(source: SourceDelegate | Element): void;

addTarget(targetDelegate: TargetDelegate, options?: TargetOptions): void;
removeTarget(target: TargetDelegate | Element): void;
public addTarget(targetDelegate: TargetDelegate, options?: TargetOptions): void;
public removeTarget(target: TargetDelegate | Element): void;

addPreviewDrawer(drawer: PreviewDrawer): void;
public addPreviewDrawer(drawer: PreviewDrawer): void;
}

0 comments on commit 717a67a

Please sign in to comment.