MCPcopy
hub / github.com/hello-pangea/dnd / withImpact

Function withImpact

test/util/dragging-state.ts:26–33  ·  view source on GitHub ↗
(
  current: IsDraggingState,
  impact: DragImpact,
)

Source from the content-addressed store, hash-verified

24];
25
26export const withImpact = (
27 current: IsDraggingState,
28 impact: DragImpact,
29): IsDraggingState =>
30 ({
31 ...current,
32 impact,
33 }) as any;
34
35export const move = (
36 previous: IsDraggingState,

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…