mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* 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
18 lines
427 B
TypeScript
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);
|