diff --git a/public/app/controllers/fileSearcher.d.ts b/public/app/controllers/fileSearcher.d.ts
new file mode 100644
index 00000000000..dbac066880e
--- /dev/null
+++ b/public/app/controllers/fileSearcher.d.ts
@@ -0,0 +1,6 @@
+///
+declare class FileSearcher {
+ constructor();
+ getFiles(): string[];
+}
+export = FileSearcher;
diff --git a/public/app/controllers/fileSearcher.js b/public/app/controllers/fileSearcher.js
new file mode 100644
index 00000000000..24842f571d2
--- /dev/null
+++ b/public/app/controllers/fileSearcher.js
@@ -0,0 +1,13 @@
+///
+define(["require", "exports"], function (require, exports) {
+ var FileSearcher = (function () {
+ function FileSearcher() {
+ }
+ FileSearcher.prototype.getFiles = function () {
+ return ["asd"];
+ };
+ return FileSearcher;
+ })();
+ return FileSearcher;
+});
+//# sourceMappingURL=fileSearcher.js.map
\ No newline at end of file
diff --git a/public/app/controllers/fileSearcher.js.map b/public/app/controllers/fileSearcher.js.map
new file mode 100644
index 00000000000..8fee4ea258a
--- /dev/null
+++ b/public/app/controllers/fileSearcher.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"fileSearcher.js","sourceRoot":"","sources":["fileSearcher.ts"],"names":["FileSearcher","FileSearcher.constructor","FileSearcher.getFiles"],"mappings":"AAAA,+CAA+C;;IAE/C;QAEIA;QACAC,CAACA;QAEMD,+BAAQA,GAAfA;YACEE,MAAMA,CAACA,CAACA,KAAKA,CAACA,CAACA;QACjBA,CAACA;QACLF,mBAACA;IAADA,CAACA,AARD,IAQC;IAEqB,AAAtB,OAAS,YAAY,CAAC"}
\ No newline at end of file
diff --git a/public/app/controllers/fileSearcher.ts b/public/app/controllers/fileSearcher.ts
new file mode 100644
index 00000000000..4515c374bd0
--- /dev/null
+++ b/public/app/controllers/fileSearcher.ts
@@ -0,0 +1,18 @@
+///
+
+class FileSearcher {
+
+ constructor() {
+ }
+
+ public getFiles() : string[] {
+ return ["asd"];
+ }
+
+ public getBullshit() : any {
+ return "asd";
+ }
+
+}
+
+export = FileSearcher;
diff --git a/public/app/controllers/testCtrl.js b/public/app/controllers/testCtrl.js
index b8687f2732b..878d3934e7b 100644
--- a/public/app/controllers/testCtrl.js
+++ b/public/app/controllers/testCtrl.js
@@ -1,10 +1,11 @@
///
-define(["require", "exports", "../components/panelmeta"], function (require, exports) {
+define(["require", "exports", './fileSearcher', "../components/panelmeta"], function (require, exports, FileSearcher) {
var Base = (function () {
function Base() {
+ var test = new FileSearcher();
+ test.getFiles();
}
Base.prototype.getName = function () {
- debugger;
return "asd";
};
return Base;
diff --git a/public/app/controllers/testCtrl.js.map b/public/app/controllers/testCtrl.js.map
index f99ddeff0ce..22984a48a83 100644
--- a/public/app/controllers/testCtrl.js.map
+++ b/public/app/controllers/testCtrl.js.map
@@ -1 +1 @@
-{"version":3,"file":"testCtrl.js","sourceRoot":"","sources":["testCtrl.ts"],"names":["Base","Base.constructor","Base.getName"],"mappings":"AAAA,+CAA+C;;IAM/C;QAEIA;QACAC,CAACA;QAEMD,sBAAOA,GAAdA;YACEE,QAAQA,CAACA;YACTA,MAAMA,CAACA,KAAKA,CAACA;QACfA,CAACA;QACLF,WAACA;IAADA,CAACA,AATD,IASC;IAEa,AAAd,OAAS,IAAI,CAAC"}
\ No newline at end of file
+{"version":3,"file":"testCtrl.js","sourceRoot":"","sources":["testCtrl.ts"],"names":["Base","Base.constructor","Base.getName"],"mappings":"AAAA,+CAA+C;;IAO/C;QAEIA;YACEC,IAAIA,IAAIA,GAAGA,IAAIA,YAAYA,EAAEA,CAACA;YAC9BA,IAAIA,CAACA,QAAQA,EAAEA,CAACA;QAClBA,CAACA;QAEMD,sBAAOA,GAAdA;YACEE,MAAMA,CAACA,KAAKA,CAACA;QACfA,CAACA;QACLF,WAACA;IAADA,CAACA,AAVD,IAUC;IAEa,AAAd,OAAS,IAAI,CAAC"}
\ No newline at end of file
diff --git a/public/app/controllers/testCtrl.ts b/public/app/controllers/testCtrl.ts
index cf7f91289fa..596d8f67a1d 100644
--- a/public/app/controllers/testCtrl.ts
+++ b/public/app/controllers/testCtrl.ts
@@ -3,14 +3,16 @@
///
import PanelMeta = require('../components/panelmeta');
+import FileSearcher = require('./fileSearcher');
class Base {
constructor() {
+ var test = new FileSearcher();
+ test.getFiles();
}
public getName() : string {
- debugger;
return "asd";
}
}