Reproducible example of a bug with readonly class properties with api-extractor v7.24.0
File: /src/index.ts
Test: npm start
Declaration:
export declare class Test {
readonly foo = "bar";
}File: /valid/index.ts
Test: npm start:valid
Declaration:
export declare class Test {
readonly foo: string;
readonly bar: "ok";
readonly baz?: string;
qux: string;
}