Skip to content

Commit 6877f67

Browse files
committed
1 parent 1ffe92f commit 6877f67

File tree

5 files changed

+43
-0
lines changed

5 files changed

+43
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
declare module "foo" {
2+
interface Foo {
3+
a: number;
4+
}
5+
var _:Foo;
6+
export = _;
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/// <reference path="./a"/>
2+
3+
declare module "foo" {
4+
interface Foo {
5+
b: number;
6+
}
7+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/// <reference path="./a"/>
2+
/// <reference path="./b"/>
3+
var foo = require("foo");
4+
foo.b = 123;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference path="./a"/>
2+
/// <reference path="./b"/>
3+
4+
import foo = require("foo");
5+
foo.b = 123; // ERROR: Property b to not exist on type Foo
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"version": "1.4.1",
3+
"compilerOptions": {
4+
"target": "es5",
5+
"module": "commonjs",
6+
"declaration": false,
7+
"noImplicitAny": false,
8+
"removeComments": true,
9+
"noLib": false
10+
},
11+
"filesGlob": [
12+
"./**/*.ts",
13+
"!./node_modules/**/*.ts"
14+
],
15+
"files": [
16+
"./a.d.ts",
17+
"./b.d.ts",
18+
"./test.ts"
19+
]
20+
}

0 commit comments

Comments
 (0)