mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
35704c2f49
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
33 lines
546 B
TypeScript
33 lines
546 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true,false
|
|
// @declaration: true
|
|
// @emitDeclarationOnly: true
|
|
// @filename: test.js
|
|
|
|
// Object literal members aren't class-like members, so JSDoc modifiers like
|
|
// @override or @readonly aren't real modifiers and must not produce grammar
|
|
// errors, regardless of checkJs (#4437).
|
|
|
|
const obj = {
|
|
/** @override */
|
|
created() {
|
|
},
|
|
|
|
/** @private */
|
|
onClose_() {
|
|
},
|
|
|
|
/** @readonly */
|
|
get value() {
|
|
return 1;
|
|
},
|
|
|
|
/** @protected */
|
|
set value(v) {
|
|
},
|
|
|
|
/** @public */
|
|
async load() {
|
|
},
|
|
};
|