Skip to content

Commit 67df859

Browse files
committed
goto definition test
refs TypeStrong/atom-typescript#214
1 parent 04eb04c commit 67df859

File tree

7 files changed

+34
-0
lines changed

7 files changed

+34
-0
lines changed

gotoDefinition/defintionsOne.js

Whitespace-only changes.

gotoDefinition/defintionsOne.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
interface SingleDefinition {
2+
a: number;
3+
}
4+
5+
interface MultipleDefinition {
6+
a: number;
7+
}

gotoDefinition/defintionsTwo.js

Whitespace-only changes.

gotoDefinition/defintionsTwo.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
interface MultipleDefinition {
2+
b: number;
3+
}

gotoDefinition/testFile.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
var foo;
2+
var bar;

gotoDefinition/testFile.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
var foo: SingleDefinition;
2+
var bar: MultipleDefinition;

gotoDefinition/tsconfig.json

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+
"./defintionsOne.ts",
17+
"./defintionsTwo.ts",
18+
"./testFile.ts"
19+
]
20+
}

0 commit comments

Comments
 (0)