react-dnd
Version:
Drag and Drop for React
21 lines (20 loc) • 609 B
TypeScript
import * as React from 'react';
import { DragDropManager, BackendFactory } from 'dnd-core';
/**
* The React context type
*/
export interface DndContext {
dragDropManager: DragDropManager | undefined;
}
/**
* Create the React Context
*/
export declare const DndContext: React.Context<DndContext>;
/**
* Creates the context object we're providing
* @param backend
* @param context
*/
export declare function createDndContext<BackendContext, BackendOptions>(backend: BackendFactory, context?: BackendContext, options?: BackendOptions, debugMode?: boolean): {
dragDropManager: DragDropManager;
};