File: tsxResolveExternalModuleExportsTypes.types

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 (38 lines) | stat: -rw-r--r-- 679 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
32
33
34
35
36
37
38
=== /node_modules/@types/a/index.d.ts ===
declare var a: a.Foo;
>a : import("/node_modules/@types/a/index.d.ts").Foo
>a : any

declare namespace a {
    interface Foo {}
}
export = a;
>a : import("/node_modules/@types/a/index.d.ts").Foo

=== /node_modules/@types/b/index.d.ts ===
import * as a from 'a';
>a : a.Foo

declare module 'a' {
>'a' : Foo

    namespace Test {}

    interface Foo {
        Test: null;
>Test : null
>null : null
    }
}

=== tests/cases/compiler/foo.tsx ===
import { Test } from 'a';
>Test : null

const Foo = (<h1></h1>);
>Foo : JSX.Element
>(<h1></h1>) : JSX.Element
><h1></h1> : JSX.Element
>h1 : any
>h1 : any