MCPcopy
hub / github.com/react-dnd/react-dnd / addSource

Method addSource

packages/dnd-core/src/interfaces.ts:107–107  ·  view source on GitHub ↗
(type: SourceType, source: DragSource)

Source from the content-addressed store, hash-verified

105
106export interface HandlerRegistry {
107 addSource(type: SourceType, source: DragSource): Identifier
108 addTarget(type: TargetType, target: DropTarget): Identifier
109 containsHandler(handler: DragSource | DropTarget): boolean
110 getSource(sourceId: Identifier, includePinned?: boolean): DragSource

Callers 4

beginDragNativeItemMethod · 0.65
registerSourceFunction · 0.65

Implementers 1

HandlerRegistryImplpackages/dnd-core/src/classes/HandlerR

Calls

no outgoing calls

Tested by

no test coverage detected