File: jsdocTypeFromChainedAssignment2.errors.txt

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (31 lines) | stat: -rw-r--r-- 1,440 bytes parent folder | download | duplicates (4)
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
tests/cases/conformance/jsdoc/use.js(2,7): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
tests/cases/conformance/jsdoc/use.js(3,7): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
tests/cases/conformance/jsdoc/use.js(4,7): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
tests/cases/conformance/jsdoc/use.js(5,7): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.


==== tests/cases/conformance/jsdoc/use.js (4 errors) ====
    var mod = require('./mod');
    mod.f('no')
          ~~~~
!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
    mod.g('also no')
          ~~~~~~~~~
!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
    mod.h(0)
          ~
!!! error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
    mod.i(1)
          ~
!!! error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
    
==== tests/cases/conformance/jsdoc/mod.js (0 errors) ====
    /** @param {number} n */
    exports.f = exports.g = function fg(n) {
        return n + 1
    }
    /** @param {string} mom */
    module.exports.h = module.exports.i = function hi(mom) {
        return `hi, ${mom}!`;
    }