For my project, I am working with Highcharts typings and encountered a need to extend certain object/interfaces it defines by adding some custom properties. Here is an example:
declare namespace Chart {
interface ChartOptions extends Highcharts.ChartOptions {
series: ResourceSeries[];
}
}
In the file chart.component.ts, I have the following code snippet:
import ChartOptions = Chart.ChartOptions;
export class ChartComponent {
}
When attempting to use this code, I get an error stating "Chart is not defined". Strangely enough, when I use it in a different (master) module that utilizes the ChartComponent directive, the import works without any issues.