Я пытаюсь добавить пользовательский символ в проекте angular 5.
Это мой код:
import * as Highcharts from "highcharts";
Highcharts.Renderer.prototype.symbols.line, function(x, y, width, height) {
return ['M',x ,y + width / 2,'L',x`enter code here`+height,y + width / 2];
}
Я получаю следующую ошибку:
ОШИБКА в src / app / dashboard / apc-hse-month-chart / apc-hse-month-chart.component.ts (29,16): ошибка TS2339: свойство 'Renderer' не существует для типа 'typeof import ("D: / source / QHSE / QHSE_Frontend / node_modules / highcharts / highcharts ") '.
Как правильно сделать это в угловых 5?