alexbol99 / flatten-interval-tree

Interval binary search tree
MIT License
41 stars 21 forks source link

Use this package with TypeScript #11

Closed nioperas06 closed 4 years ago

nioperas06 commented 4 years ago

How can I use this package with TypeScript?

nioperas06 commented 4 years ago

Found! Quick and Dirty 😄

declare var require: any;
const IntervalTree = require('@flatten-js/interval-tree').default;

let tree = new IntervalTree();
// ...