Skip to content

Handle @extends jsdoc tag #17072

Closed
Closed
@ghost

Description

TypeScript Version: nightly (2.5.0-dev.20170707)

Code

C.d.ts

export default class C<T> {
    t: T;
}

D.js

import C from "./C";

/** @extends {C<number>} */
class D extends C {}

new D().t;

Expected behavior:

t is of type number.

Actual behavior:

t is of type any.

See also #17073.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions