@@ -3,6 +3,31 @@ declare var require: (...args: any[]) => any;
3
3
>require : Symbol(require, Decl(index.d.ts, 0, 11))
4
4
>args : Symbol(args, Decl(index.d.ts, 0, 22))
5
5
6
+ === /ambient.d.ts ===
7
+ declare module "fs" {
8
+ >"fs" : Symbol("fs", Decl(ambient.d.ts, 0, 0))
9
+
10
+ export function readFileSync(path: string, encoding?: string): string;
11
+ >readFileSync : Symbol(readFileSync, Decl(ambient.d.ts, 0, 21))
12
+ >path : Symbol(path, Decl(ambient.d.ts, 1, 33))
13
+ >encoding : Symbol(encoding, Decl(ambient.d.ts, 1, 46))
14
+ }
15
+ declare module "path" {
16
+ >"path" : Symbol("path", Decl(ambient.d.ts, 2, 1))
17
+
18
+ import fs = require("fs"); // ok
19
+ >fs : Symbol(fs, Decl(ambient.d.ts, 3, 23))
20
+
21
+ namespace path {
22
+ >path : Symbol(path, Decl(ambient.d.ts, 4, 30))
23
+
24
+ export const sep: string;
25
+ >sep : Symbol(sep, Decl(ambient.d.ts, 6, 20))
26
+ }
27
+ export = path; // ok
28
+ >path : Symbol(path, Decl(ambient.d.ts, 4, 30))
29
+ }
30
+
6
31
=== /mainJs.js ===
7
32
import {} from "./a";
8
33
import("./a");
0 commit comments