mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
33 lines
536 B
TypeScript
33 lines
536 B
TypeScript
//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsPrivateFields01.ts] ////
|
|
|
|
//// [file.js]
|
|
export class C {
|
|
#hello = "hello";
|
|
#world = 100;
|
|
|
|
#calcHello() {
|
|
return this.#hello;
|
|
}
|
|
|
|
get #screamingHello() {
|
|
return this.#hello.toUpperCase();
|
|
}
|
|
/** @param value {string} */
|
|
set #screamingHello(value) {
|
|
throw "NO";
|
|
}
|
|
|
|
getWorld() {
|
|
return this.#world;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
//// [file.d.ts]
|
|
export declare class C {
|
|
#private;
|
|
getWorld(): number;
|
|
}
|