Files
tsgo/testdata/baselines/reference/submodule/compiler/declarationEmitClassAccessorsJs1.js
be5de2a808 Fix declaration emit to remove non-JSDoc comments while preserving JSDoc (#1752)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2025-09-26 02:23:32 +00:00

35 lines
522 B
TypeScript

//// [tests/cases/compiler/declarationEmitClassAccessorsJs1.ts] ////
//// [index.js]
// https://github.com/microsoft/TypeScript/issues/58167
export class VFile {
/**
* @returns {string}
*/
get path() {
return ''
}
/**
* @param {URL | string} path
*/
set path(path) {
}
}
//// [index.d.ts]
export declare class VFile {
/**
* @returns {string}
*/
get path(): string;
/**
* @param {URL | string} path
*/
set path(path: URL | string);
}