DefinitelyTyped/types/alpha-shape/alpha-shape-tests.ts
rj-tlb 50cdf17fdf
Added types for alpha-shape (#46538)
* feat: added types for alpha-shape

* feat: alphe-shape index

* feat: alphe-shape test

* fix: alphe-shape npm test&lint

* fix: url

* feat: update test
2020-08-28 05:37:09 -04:00

18 lines
427 B
TypeScript

/**
* Typescript definition tests for alpha-shape module
*
* Note: These tests are intended to test the definitions only
* in the sense of typing and call signature consistency. They
* are not intended as functional tests.
*/
import alphaShape = require('alpha-shape');
const sites: number[][] = [];
for (let i = 0; i < 10; ++i) {
sites.push([Math.random(), Math.random()]);
}
const cells = alphaShape(0, sites);