1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
=== tests/cases/conformance/jsdoc/declarations/index.js ===
// @ts-nocheck
function foo() {
>foo : () => void
module.exports = exports = function (o) {
>module.exports = exports = function (o) { return (o == null) ? create(base) : defineProperties(Object(o), descriptors); } : { (o: any): any; methods: () => void; }
>module.exports : { (o: any): any; methods: () => void; }
>module : { exports: { (o: any): any; methods: () => void; }; }
>exports : { (o: any): any; methods: () => void; }
>exports = function (o) { return (o == null) ? create(base) : defineProperties(Object(o), descriptors); } : (o: any) => any
>exports : any
>function (o) { return (o == null) ? create(base) : defineProperties(Object(o), descriptors); } : (o: any) => any
>o : any
return (o == null) ? create(base) : defineProperties(Object(o), descriptors);
>(o == null) ? create(base) : defineProperties(Object(o), descriptors) : any
>(o == null) : boolean
>o == null : boolean
>o : any
>null : null
>create(base) : error
>create : error
>base : error
>defineProperties(Object(o), descriptors) : error
>defineProperties : error
>Object(o) : any
>Object : ObjectConstructor
>o : any
>descriptors : error
};
const m = function () {
>m : () => void
>function () { // I have no idea what to put here } : () => void
// I have no idea what to put here
}
exports.methods = m;
>exports.methods = m : () => void
>exports.methods : any
>exports : any
>methods : any
>m : () => void
}
|