Skip to content

Readonly properties problem in declaration files #12468

@andtii

Description

@andtii

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions