mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
* Flatbush uses export= Previously, it incorrectly used `export default`. * fix geoflatbush tests
11 lines
265 B
TypeScript
11 lines
265 B
TypeScript
import Flatbush = require('flatbush');
|
|
|
|
const from: Flatbush = Flatbush.from(new ArrayBuffer(0));
|
|
|
|
const index = new Flatbush(1);
|
|
index.add(0, 0, 1, 1);
|
|
index.finish();
|
|
|
|
const results = index.search(0.5, 0.5, 0.5, 0.5);
|
|
const neighbors = index.neighbors(0.5, 0.5);
|