@@ -176,9 +176,9 @@ m2.setonlyAccessor = 0;
176
176
=== tests/cases/conformance/jsdoc/mod1.js ===
177
177
Object.defineProperty(exports, "thing", { value: 42, writable: true });
178
178
>Object.defineProperty(exports, "thing", { value: 42, writable: true }) : typeof import("tests/cases/conformance/jsdoc/mod1")
179
- >Object.defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
179
+ >Object.defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
180
180
>Object : ObjectConstructor
181
- >defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
181
+ >defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
182
182
>exports : typeof import("tests/cases/conformance/jsdoc/mod1")
183
183
>"thing" : "thing"
184
184
>{ value: 42, writable: true } : { value: number; writable: true; }
@@ -189,9 +189,9 @@ Object.defineProperty(exports, "thing", { value: 42, writable: true });
189
189
190
190
Object.defineProperty(exports, "readonlyProp", { value: "Smith", writable: false });
191
191
>Object.defineProperty(exports, "readonlyProp", { value: "Smith", writable: false }) : typeof import("tests/cases/conformance/jsdoc/mod1")
192
- >Object.defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
192
+ >Object.defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
193
193
>Object : ObjectConstructor
194
- >defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
194
+ >defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
195
195
>exports : typeof import("tests/cases/conformance/jsdoc/mod1")
196
196
>"readonlyProp" : "readonlyProp"
197
197
>{ value: "Smith", writable: false } : { value: string; writable: false; }
@@ -202,9 +202,9 @@ Object.defineProperty(exports, "readonlyProp", { value: "Smith", writable: false
202
202
203
203
Object.defineProperty(exports, "rwAccessors", { get() { return 98122 }, set(_) { /*ignore*/ } });
204
204
>Object.defineProperty(exports, "rwAccessors", { get() { return 98122 }, set(_) { /*ignore*/ } }) : typeof import("tests/cases/conformance/jsdoc/mod1")
205
- >Object.defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
205
+ >Object.defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
206
206
>Object : ObjectConstructor
207
- >defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
207
+ >defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
208
208
>exports : typeof import("tests/cases/conformance/jsdoc/mod1")
209
209
>"rwAccessors" : "rwAccessors"
210
210
>{ get() { return 98122 }, set(_) { /*ignore*/ } } : { get(): number; set(_: any): void; }
@@ -215,9 +215,9 @@ Object.defineProperty(exports, "rwAccessors", { get() { return 98122 }, set(_) {
215
215
216
216
Object.defineProperty(exports, "readonlyAccessor", { get() { return 21.75 } });
217
217
>Object.defineProperty(exports, "readonlyAccessor", { get() { return 21.75 } }) : typeof import("tests/cases/conformance/jsdoc/mod1")
218
- >Object.defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
218
+ >Object.defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
219
219
>Object : ObjectConstructor
220
- >defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
220
+ >defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
221
221
>exports : typeof import("tests/cases/conformance/jsdoc/mod1")
222
222
>"readonlyAccessor" : "readonlyAccessor"
223
223
>{ get() { return 21.75 } } : { get(): number; }
@@ -226,9 +226,9 @@ Object.defineProperty(exports, "readonlyAccessor", { get() { return 21.75 } });
226
226
227
227
Object.defineProperty(exports, "setonlyAccessor", {
228
228
>Object.defineProperty(exports, "setonlyAccessor", { /** @param {string} str */ set(str) { this.rwAccessors = Number(str) }}) : typeof import("tests/cases/conformance/jsdoc/mod1")
229
- >Object.defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
229
+ >Object.defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
230
230
>Object : ObjectConstructor
231
- >defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
231
+ >defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
232
232
>exports : typeof import("tests/cases/conformance/jsdoc/mod1")
233
233
>"setonlyAccessor" : "setonlyAccessor"
234
234
>{ /** @param {string} str */ set(str) { this.rwAccessors = Number(str) }} : { set(str: string): void; }
@@ -252,9 +252,9 @@ Object.defineProperty(exports, "setonlyAccessor", {
252
252
=== tests/cases/conformance/jsdoc/mod2.js ===
253
253
Object.defineProperty(module.exports, "thing", { value: "yes", writable: true });
254
254
>Object.defineProperty(module.exports, "thing", { value: "yes", writable: true }) : typeof module.exports
255
- >Object.defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
255
+ >Object.defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
256
256
>Object : ObjectConstructor
257
- >defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
257
+ >defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
258
258
>module.exports : typeof module.exports
259
259
>module : { exports: typeof module.exports; }
260
260
>exports : typeof module.exports
@@ -267,9 +267,9 @@ Object.defineProperty(module.exports, "thing", { value: "yes", writable: true })
267
267
268
268
Object.defineProperty(module.exports, "readonlyProp", { value: "Smith", writable: false });
269
269
>Object.defineProperty(module.exports, "readonlyProp", { value: "Smith", writable: false }) : typeof module.exports
270
- >Object.defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
270
+ >Object.defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
271
271
>Object : ObjectConstructor
272
- >defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
272
+ >defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
273
273
>module.exports : typeof module.exports
274
274
>module : { exports: typeof module.exports; }
275
275
>exports : typeof module.exports
@@ -282,9 +282,9 @@ Object.defineProperty(module.exports, "readonlyProp", { value: "Smith", writable
282
282
283
283
Object.defineProperty(module.exports, "rwAccessors", { get() { return 98122 }, set(_) { /*ignore*/ } });
284
284
>Object.defineProperty(module.exports, "rwAccessors", { get() { return 98122 }, set(_) { /*ignore*/ } }) : typeof module.exports
285
- >Object.defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
285
+ >Object.defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
286
286
>Object : ObjectConstructor
287
- >defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
287
+ >defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
288
288
>module.exports : typeof module.exports
289
289
>module : { exports: typeof module.exports; }
290
290
>exports : typeof module.exports
@@ -297,9 +297,9 @@ Object.defineProperty(module.exports, "rwAccessors", { get() { return 98122 }, s
297
297
298
298
Object.defineProperty(module.exports, "readonlyAccessor", { get() { return 21.75 } });
299
299
>Object.defineProperty(module.exports, "readonlyAccessor", { get() { return 21.75 } }) : typeof module.exports
300
- >Object.defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
300
+ >Object.defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
301
301
>Object : ObjectConstructor
302
- >defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
302
+ >defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
303
303
>module.exports : typeof module.exports
304
304
>module : { exports: typeof module.exports; }
305
305
>exports : typeof module.exports
@@ -310,9 +310,9 @@ Object.defineProperty(module.exports, "readonlyAccessor", { get() { return 21.75
310
310
311
311
Object.defineProperty(module.exports, "setonlyAccessor", {
312
312
>Object.defineProperty(module.exports, "setonlyAccessor", { /** @param {string} str */ set(str) { this.rwAccessors = Number(str) }}) : typeof module.exports
313
- >Object.defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
313
+ >Object.defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
314
314
>Object : ObjectConstructor
315
- >defineProperty : <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
315
+ >defineProperty : <T extends object >(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T
316
316
>module.exports : typeof module.exports
317
317
>module : { exports: typeof module.exports; }
318
318
>exports : typeof module.exports
0 commit comments