Skip to content

Commit

Permalink
more typing work.
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamilenkovic committed Jan 10, 2024
1 parent c87f6ef commit c8a25fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/plugins/dropZones/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ export function initDropZone(
});

const parentData = Data.parents.get(parent);

if (!parentData) return;

if (
Expand Down
10 changes: 4 additions & 6 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,13 @@ export interface ParentConfig extends DropZoneConfig {
dropZoneClass?: string | undefined;
end: DNDAction;
dropZones?: Array<DropZone>;
group?: string;
longTouchClass?: string;
plugins?: Array<DragAndDropPlugin>;
removeDraggable?: RemoveDraggableEvent;
plugins?: Array<DNDPlugin>;
teardownNodes?: (node: Node) => void;
root: Document | ShadowRoot | HTMLElement;
selectionDraggingClass?: string;
selectionDropZoneClass?: string;
setDraggable?: SetDraggableEvent;
setupNodes?: (node: Node) => void;
setSelections?: (el?: HTMLElement) => any[];
sort: DNDAction;
sortable?: boolean;
Expand All @@ -55,13 +54,12 @@ export interface ParentConfig extends DropZoneConfig {
}

export interface DropZoneConfig {
group?: string;
parentDropZone?: HTMLElement | boolean;
nodeDropZone?: boolean;
name?: string;
accepts?: (any: any) => boolean;
disabled?: boolean;
transfer?: DNDAction;
dragleave?: DragleaveEvent;
}

export interface ParentData {
Expand Down

0 comments on commit c8a25fe

Please sign in to comment.