8 lines
153 B
TypeScript
8 lines
153 B
TypeScript
//// [readonlyInAmbientClass.ts]
|
|
declare class C{
|
|
constructor(readonly x: number);
|
|
method(readonly x: number);
|
|
}
|
|
|
|
//// [readonlyInAmbientClass.js]
|