1
호환되는 C 게요 서명이없는 내가 서버를 ng를 실행하려고하면, 빌드가오류 : 유형에 호출 서명이없는 표현식을 호출 할 수 없습니다. 유형은 '나는 내 각 프로젝트에 <a href="https://github.com/mapbox/polylabel" rel="nofollow noreferrer">https://github.com/mapbox/polylabel</a>를 사용하는 것을 시도하고있다
error TS2349: Cannot invoke an expres ion whose type lacks a call signature. Type node_modules/@types/polylabel/index"'has no compatible c ll signatures.
오류 다음에 따라 실패 index.ts 코드입니다
// Type definitions for polylabel 1.0
// Project: https://github.com/mapbox/polylabel
// Definitions by: Denis Carriere <https://github.com/DenisCarriere>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Polylabel returns the pole of inaccessibility coordinate in [x, y] format.
*
* @param polygon - Given polygon coordinates in GeoJSON-like format
* @param precision - Precision (1.0 by default)
* @param debug - Debugging for Console
* @example
* var p = polylabel(polygon, 1.0);
*/
declare function polylabel(polygon: number[][][], precision?: number, debug?: boolean): number[];
declare namespace polylabel {}
export default polylabel;