Skip to content

Parser cannot handle 'readonly' modifier on property signature #6

@RalfKoban

Description

@RalfKoban

When parsing the file https://github.com/microsoft/TypeScript/blob/master/scripts/types/ambient.d.ts, the parser cannot handle the situation properly that there is a readonly modifier on a property signature.

Snippet:

    namespace File {
        export interface VinylOptions<T extends Contents = Contents> {
            cwd?: string;
            base?: string;
            path?: string;
            history?: readonly string[];

Subsequent Property signatures aren't reported anymore. Instead, expressions are reported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions