File: jsdocTypeFromChainedAssignment2.errors.txt

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (31 lines) | stat: -rw-r--r-- 1,422 bytes parent folder | download
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 '"no"' is not assignable to parameter of type 'number'.
tests/cases/conformance/jsdoc/use.js(3,7): error TS2345: Argument of type '"also no"' is not assignable to parameter of type 'number'.
tests/cases/conformance/jsdoc/use.js(4,7): error TS2345: Argument of type '0' is not assignable to parameter of type 'string'.
tests/cases/conformance/jsdoc/use.js(5,7): error TS2345: Argument of type '1' 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 '"no"' is not assignable to parameter of type 'number'.
    mod.g('also no')
          ~~~~~~~~~
!!! error TS2345: Argument of type '"also no"' is not assignable to parameter of type 'number'.
    mod.h(0)
          ~
!!! error TS2345: Argument of type '0' is not assignable to parameter of type 'string'.
    mod.i(1)
          ~
!!! error TS2345: Argument of type '1' 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}!`;
    }