-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
CommittedThe team has roadmapped this issueThe team has roadmapped this issueDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationDomain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallySuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
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.
tenorok, akdor1154, brendankenny, patrickhulce, ifeltsweet and 22 more
Metadata
Metadata
Assignees
Labels
CommittedThe team has roadmapped this issueThe team has roadmapped this issueDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationDomain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallySuggestionAn idea for TypeScriptAn idea for TypeScript