tech(typescript): testing for how to migrate to typescript

This commit is contained in:
Torkel Ödegaard
2015-09-09 09:57:06 +02:00
parent 3e9e34afb8
commit 3c40310e9b
10 changed files with 443 additions and 1 deletions

7
public/app/components/panelmeta.d.ts vendored Normal file
View File

@@ -0,0 +1,7 @@
/// <reference path="../headers/require.d.ts" />
declare class Base {
constructor();
testFunc(): number
getName(): string
}
export = Base;

View File

@@ -33,6 +33,10 @@ function () {
this.menu.push({text: text, icon: icon, click: click, role: role});
};
PanelMeta.prototype.getName = function() {
return "javascript";
};
PanelMeta.prototype.addExtendedMenuItem = function(text, icon, click, role) {
this.extendedMenu.push({text: text, icon: icon, click: click, role: role});
};