The following doesn't seem to compile:
declare namespace ns {
interface Test {
readonly x: number;
}
}
with:
Cannot find name 'readonly'.
Property or signature expected.
nor does this:
declare namespace ns {
interface Test {
const x: number;
}
}
with:
Property or signature expected.