mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tech(typescript): testing for how to migrate to typescript
This commit is contained in:
7
public/app/components/panelmeta.d.ts
vendored
Normal file
7
public/app/components/panelmeta.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/// <reference path="../headers/require.d.ts" />
|
||||
declare class Base {
|
||||
constructor();
|
||||
testFunc(): number
|
||||
getName(): string
|
||||
}
|
||||
export = Base;
|
||||
@@ -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});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user