mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
Using `import * as polylabel from 'polylabel'` is now valid in Typescript vs. require('polylabel').
9 lines
254 B
TypeScript
9 lines
254 B
TypeScript
/// <reference path="./polylabel.d.ts" />
|
|
import * as polylabel from 'polylabel';
|
|
|
|
const polygon = [[[3116,3071],[3118,3068],[3108,3102],[3751,927]]]
|
|
polylabel(polygon)
|
|
polylabel(polygon, 1.0)
|
|
polylabel(polygon, 1.0, true)
|
|
polylabel(polygon, 1.0, false)
|