Files
NapCatQQ/.pnpm-store/v3/files/82/4d594f7cfdfe57e47309a4777be1d7b540a6fc8c580bcd3c4add4f1e9137446510966abfb0e408c2384e7250a21c4368bdc1936132b185722bf65e56f13646
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

25 lines
880 B
Plaintext

import type { Active, UniqueIdentifier } from '@dnd-kit/core';
import type { Transition } from '@dnd-kit/utilities';
export declare type SortableTransition = Pick<Transition, 'easing' | 'duration'>;
export declare type AnimateLayoutChanges = (args: {
active: Active | null;
containerId: UniqueIdentifier;
isDragging: boolean;
isSorting: boolean;
id: UniqueIdentifier;
index: number;
items: UniqueIdentifier[];
previousItems: UniqueIdentifier[];
previousContainerId: UniqueIdentifier;
newIndex: number;
transition: SortableTransition | null;
wasDragging: boolean;
}) => boolean;
export interface NewIndexGetterArguments {
id: UniqueIdentifier;
items: UniqueIdentifier[];
activeIndex: number;
overIndex: number;
}
export declare type NewIndexGetter = (args: NewIndexGetterArguments) => number;