Skip to content

Quick info / Goto definition use alias as target even if it has incorrect meaning #6456

Description

@vladima

Related to #6372.

// highcharts.d.ts
declare var Highcharts: HighchartsStatic;

interface HighchartsChart {
    /**
     * This is the constructor for creating a new chart object.
     * @param  {HighchartsOptions} options The chart options
     * @return {HighchartsChartObject}
     */
    new (): any;
}


interface HighchartsStatic {
    Chart: HighchartsChart;
}

declare module 'highcharts-release' {
    export = HighchartsStatic;
}
import Highcharts = require('highcharts-release');
var chart = new High/*1*/charts.Chart();

Quickinfo / Goto definition at position /*1*/ will show information about import Highcharts but it should be declare var Highcharts instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions