summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/services/stats.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/services/stats.ts b/src/services/stats.ts
index 2f8bcd4cac..7479c2cb94 100644
--- a/src/services/stats.ts
+++ b/src/services/stats.ts
@@ -1,3 +1,7 @@
+/**
+ * このファイルでは、チャートに関する処理を行います。
+ */
+
const nestedProperty = require('nested-property');
import * as mongo from 'mongodb';
import db from '../db/mongodb';
@@ -43,6 +47,9 @@ type ChartDocument<T extends Obj> = {
data: T;
};
+/**
+ * 様々なチャートの管理を司るクラス
+ */
abstract class Chart<T> {
protected collection: ICollection<ChartDocument<T>>;
protected abstract generateInitialStats(): T;