fluid-dnd
Version:
An agnostic drag and drop library to sort all kind of lists. With current support for vue, react and svelte
6 lines (5 loc) • 353 B
TypeScript
import { Ref } from "vue";
export declare const removeAtEventOnList: <T>(list: Ref<T[]>, index: number) => T | undefined;
export declare const onInsertEventOnList: <T>(list: Ref<T[]>, index: number, value: T) => void;
export declare const getLength: <T>(list: Ref<T[]>) => number;
export declare const getValue: <T>(list: Ref<T[]>, index: number) => T;