File: typeOnlyMerge3.errors.txt

package info (click to toggle)
node-typescript 5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 497,488 kB
  • sloc: javascript: 2,107,274; makefile: 6; sh: 1
file content (39 lines) | stat: -rw-r--r-- 1,500 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
32
33
34
35
36
37
38
39
b.ts(1,10): error TS2440: Import declaration conflicts with local declaration of 'A'.
c.ts(2,1): error TS1362: 'A' cannot be used as a value because it was exported using 'export type'.
c.ts(3,1): error TS1362: 'A' cannot be used as a value because it was exported using 'export type'.
c.ts(4,1): error TS1362: 'A' cannot be used as a value because it was exported using 'export type'.
c.ts(4,1): error TS2349: This expression is not callable.
  Type 'typeof A' has no call signatures.


==== a.ts (0 errors) ====
    function A() {}
    export type { A };
    
==== b.ts (1 errors) ====
    import { A } from "./a";
             ~
!!! error TS2440: Import declaration conflicts with local declaration of 'A'.
    namespace A {
      export const displayName = "A";
    }
    export { A };
    
==== c.ts (4 errors) ====
    import { A } from "./b";
    A;
    ~
!!! error TS1362: 'A' cannot be used as a value because it was exported using 'export type'.
!!! related TS1377 a.ts:2:15: 'A' was exported here.
    A.displayName;
    ~
!!! error TS1362: 'A' cannot be used as a value because it was exported using 'export type'.
!!! related TS1377 a.ts:2:15: 'A' was exported here.
    A();
    ~
!!! error TS1362: 'A' cannot be used as a value because it was exported using 'export type'.
!!! related TS1377 a.ts:2:15: 'A' was exported here.
    ~
!!! error TS2349: This expression is not callable.
!!! error TS2349:   Type 'typeof A' has no call signatures.