Grafana ui library poc

This commit is contained in:
Torkel Ödegaard
2018-12-20 09:25:04 +01:00
parent 2325c5dbed
commit f089c7ee5e
5 changed files with 40 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
export class Google {
hello() {
return 'hello';
}
}
class Singleton {
constructor(private state) {}
hello() {
return this.state;
}
change() {
this.state = 'mod2';
}
}
const singletonSrv = new Singleton('hello');
export { singletonSrv };
+11
View File
@@ -0,0 +1,11 @@
{
"name": "grafana-ui",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}