TypeScriptAST icon indicating copy to clipboard operation
TypeScriptAST copied to clipboard

Parser cannot handle 'readonly' modifier on property signature

Open RalfKoban opened this issue 4 years ago • 1 comments

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.

RalfKoban avatar Dec 10 '19 15:12 RalfKoban