-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
VS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issueWon't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix itThe severity and priority of this issue do not warrant the time or complexity needed to fix it
Description
TypeScript Version: 1.8.x and 2.0
Code
export class A {
get value(): number {
return 10;
}
}
A d.ts file for this ts file looks with 2.0 like this:
export declare class A {
readonly value: number;
}
This d.ts file can't be consumed by clients still using 1.8.10 compiler. To ease transition to 2.0 the compiler should allow to generate 1.8 compliant d.ts file if possible, which is not possible for example with using undefined as a type.
Metadata
Metadata
Assignees
Labels
VS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issueWon't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix itThe severity and priority of this issue do not warrant the time or complexity needed to fix it