UNPKG

react-dnd-test-backend

Version:

A mock backend for testing React DnD apps

12 lines (11 loc) 435 B
import { TestBackendImpl } from './TestBackend.js'; export * from './TestBackend.js'; export * from './types.js'; export const TestBackend = function createBackend(manager, context = {}, options = {}) { const result = new TestBackendImpl(manager, context); if (options === null || options === void 0 ? void 0 : options.onCreate) { options.onCreate(result); } return result; }; //# sourceMappingURL=index.js.map