Skip to content

JSDoc: support @implements tag on class #17498

@darky

Description

@darky

TypeScript Version: nightly (2.5.0-dev.20170728)

Code

index.d.ts

class AClass {
    method(a: number): number
}

some.js

/** @type {AClass} */
class A {
    method(a) {
        return false;
    }
}

Expected behavior:

Type 'false' is not assignable to type 'number'.

Actual behavior:

Not working. Impossible to set type on class.

Metadata

Metadata

Assignees

Labels

CommittedThe team has roadmapped this issueDomain: JSDocRelates to JSDoc parsing and type generationDomain: JavaScriptThe issue relates to JavaScript specificallySuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions