Skip to content

Commit

Permalink
Merge pull request #56 from rmja/patch-1
Browse files Browse the repository at this point in the history
fix(typings): Let moveBefore() be generic
  • Loading branch information
michaelmalonenz authored May 3, 2019
2 parents 30e6d5e + e45ea22 commit 2fd691e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aurelia-dragula.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ declare namespace dragula {
drop(item: Element, target: Element);
}

function moveBefore(array: Array<any>, itemMatcherFn: (item: Element) => boolean, siblingMatcherFn: (item: Element) => boolean)
function moveBefore<T>(array: T[], itemMatcherFn: (item: T) => boolean, siblingMatcherFn: (item: T) => boolean)
}

export = dragula;

0 comments on commit 2fd691e

Please sign in to comment.