Meanwhile, I created a d.ts file to be able to use drag. there is no intellisense and no type checking, but at least I can use the drag and drop library.
declare var d3Drag; declare module 'd3-drag' { export = d3Drag; }
I use it in my code as follows:
import * as d3Drag from 'd3-drag'; ... let dragBehaivor = d3Drag.drag().on("start", dragStartFunction);
source share