Skip to content

[TypeScript] support readonly operator #5977

@ikatyang

Description

@ikatyang

TS 3.4 RC release note

Prettier 1.16.4
Playground link

--parser typescript

Input:

declare const array: readonly number[];

Output:

SyntaxError: ',' expected. (1:31)
> 1 | declare const array: readonly number[];
    |                               ^

Expected behavior:
no error

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.scope:dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependencystatus:has prIssues with an accompanying pull request. These issues will probably be fixed soon!

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions