mirror of
https://github.com/morris/vanilla-todo.git
synced 2025-08-21 05:11:20 +02:00
add some jsdoc for element autocomplete
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
/**
|
||||
* @param {HTMLElement} el
|
||||
* @param {{
|
||||
* dropSelector: string;
|
||||
* dragThreshold?: number;
|
||||
* dropRange?: number;
|
||||
* }} options
|
||||
*/
|
||||
export function AppDraggable(el, options) {
|
||||
const dragThreshold = options.dragThreshold ?? 5;
|
||||
const dropRange = options.dropRange ?? 50;
|
||||
|
Reference in New Issue
Block a user