Commit 005e1e00 by Torkel Ödegaard

more playing around with typescript

parent 3c40310e
/// <reference path="../headers/require.d.ts" />
declare class FileSearcher {
constructor();
getFiles(): string[];
}
export = FileSearcher;
///<reference path="../headers/require.d.ts" />
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
{"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
///<reference path="../headers/require.d.ts" />
class FileSearcher {
constructor() {
}
public getFiles() : string[] {
return ["asd"];
}
public getBullshit() : any {
return "asd";
}
}
export = FileSearcher;
///<reference path="../headers/require.d.ts" /> ///<reference path="../headers/require.d.ts" />
define(["require", "exports", "../components/panelmeta"], function (require, exports) { define(["require", "exports", './fileSearcher', "../components/panelmeta"], function (require, exports, FileSearcher) {
var Base = (function () { var Base = (function () {
function Base() { function Base() {
var test = new FileSearcher();
test.getFiles();
} }
Base.prototype.getName = function () { Base.prototype.getName = function () {
debugger;
return "asd"; return "asd";
}; };
return Base; return Base;
......
{"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"} {"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 \ No newline at end of file
...@@ -3,14 +3,16 @@ ...@@ -3,14 +3,16 @@
///<amd-dependency path="../components/panelmeta" /> ///<amd-dependency path="../components/panelmeta" />
import PanelMeta = require('../components/panelmeta'); import PanelMeta = require('../components/panelmeta');
import FileSearcher = require('./fileSearcher');
class Base { class Base {
constructor() { constructor() {
var test = new FileSearcher();
test.getFiles();
} }
public getName() : string { public getName() : string {
debugger;
return "asd"; return "asd";
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment