Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readonly properties problem in declaration files #12468

Closed
andtii opened this issue Nov 23, 2016 · 1 comment
Closed

Readonly properties problem in declaration files #12468

andtii opened this issue Nov 23, 2016 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@andtii
Copy link

andtii commented Nov 23, 2016

TypeScript Version: 2.0.6

export class Ajax {
    public static get Application_JSON(): string { return "application/json"; }
}

//generates the following in d.ts
export declare class Ajax {
    static Application_JSON: string;
}

Expected behavior:
No build errors
Actual behavior:
A build error is being thrown

@mhegazy
Copy link
Contributor

mhegazy commented Nov 23, 2016

Please see #10412, #6702 (comment) and #7573.

@mhegazy mhegazy added the Duplicate An existing issue was already created label Nov 23, 2016
@andtii andtii closed this as completed Nov 24, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants