Skip to content

Commit f26d7ba

Browse files
committed
chore(ts): fix typechecking
1 parent 1ccb74e commit f26d7ba

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/DndProvider.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ export type DndProviderProps = {
5353
) => void;
5454
onUpdate?: (
5555
event: GestureUpdateEvent<PanGestureHandlerEventPayload>,
56-
meta: { activeId: UniqueIdentifier; activeLayout: LayoutRectangle; droppableActiveId: UniqueIdentifier },
56+
meta: {
57+
activeId: UniqueIdentifier;
58+
activeLayout: LayoutRectangle;
59+
droppableActiveId: UniqueIdentifier | null;
60+
},
5761
) => void;
5862
onFinalize?: (
5963
event: GestureStateChangeEvent<PanGestureHandlerEventPayload>,
@@ -310,7 +314,11 @@ export const DndProvider = forwardRef<DndProviderHandle, PropsWithChildren<DndPr
310314
});
311315
droppableActiveId.value = findDroppableLayoutId(draggableActiveLayout.value);
312316
if (onUpdate) {
313-
onUpdate(event, { activeId, activeLayout: draggableActiveLayout.value, droppableActiveId: droppableActiveId.value });
317+
onUpdate(event, {
318+
activeId,
319+
activeLayout: draggableActiveLayout.value,
320+
droppableActiveId: droppableActiveId.value,
321+
});
314322
}
315323
})
316324
.onFinalize((event) => {

0 commit comments

Comments
 (0)