Skip to content

Commit 005e1e0

Browse files
committed
more playing around with typescript
1 parent 3c40310 commit 005e1e0

File tree

7 files changed

+45
-4
lines changed

7 files changed

+45
-4
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/// <reference path="../headers/require.d.ts" />
2+
declare class FileSearcher {
3+
constructor();
4+
getFiles(): string[];
5+
}
6+
export = FileSearcher;

public/app/controllers/fileSearcher.js

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/app/controllers/fileSearcher.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
///<reference path="../headers/require.d.ts" />
2+
3+
class FileSearcher {
4+
5+
constructor() {
6+
}
7+
8+
public getFiles() : string[] {
9+
return ["asd"];
10+
}
11+
12+
public getBullshit() : any {
13+
return "asd";
14+
}
15+
16+
}
17+
18+
export = FileSearcher;

public/app/controllers/testCtrl.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/app/controllers/testCtrl.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/app/controllers/testCtrl.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
///<amd-dependency path="../components/panelmeta" />
44

55
import PanelMeta = require('../components/panelmeta');
6+
import FileSearcher = require('./fileSearcher');
67

78
class Base {
89

910
constructor() {
11+
var test = new FileSearcher();
12+
test.getFiles();
1013
}
1114

1215
public getName() : string {
13-
debugger;
1416
return "asd";
1517
}
1618
}

0 commit comments

Comments
 (0)