File: literalTypeNameAssertionNotTriggered.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 (17 lines) | stat: -rw-r--r-- 650 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/a.ts(1,20): error TS2307: Cannot find module 'something' or its corresponding type declarations.
/b.ts(3,6): error TS2345: Argument of type '""' is not assignable to parameter of type '"x"'.


==== /b.ts (1 errors) ====
    import a = require('./a');
    declare function f<T>(obj: T, key: keyof T): void;
    f(a, "");
         ~~
!!! error TS2345: Argument of type '""' is not assignable to parameter of type '"x"'.
    
==== /a.ts (1 errors) ====
    import x = require("something");
                       ~~~~~~~~~~~
!!! error TS2307: Cannot find module 'something' or its corresponding type declarations.
    export { x };