File: typesVersionsDeclarationEmit.ambient.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 (33 lines) | stat: -rw-r--r-- 778 bytes parent folder | download | duplicates (5)
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
=== tests/cases/conformance/declarationEmit/main.ts ===
import { fa } from "ext";
>fa : () => import("ext").A

import { fb } from "ext/other";
>fb : () => import("ext/other").B

export const va = fa();
>va : import("ext").A
>fa() : import("ext").A
>fa : () => import("ext").A

export const vb = fb();
>vb : import("ext/other").B
>fb() : import("ext/other").B
>fb : () => import("ext/other").B

=== tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts ===
declare module "ext" {
>"ext" : typeof import("ext")

    export interface A {}
    export function fa(): A;
>fa : () => A
}
declare module "ext/other" {
>"ext/other" : typeof import("ext/other")

    export interface B {}
    export function fb(): B;
>fb : () => B
}