mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 05:26:43 -06:00
Update stats.ts
This commit is contained in:
parent
17263fb459
commit
be2cde106b
1 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
/**
|
||||||
|
* このファイルでは、チャートに関する処理を行います。
|
||||||
|
*/
|
||||||
|
|
||||||
const nestedProperty = require('nested-property');
|
const nestedProperty = require('nested-property');
|
||||||
import * as mongo from 'mongodb';
|
import * as mongo from 'mongodb';
|
||||||
import db from '../db/mongodb';
|
import db from '../db/mongodb';
|
||||||
|
@ -43,6 +47,9 @@ type ChartDocument<T extends Obj> = {
|
||||||
data: T;
|
data: T;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 様々なチャートの管理を司るクラス
|
||||||
|
*/
|
||||||
abstract class Chart<T> {
|
abstract class Chart<T> {
|
||||||
protected collection: ICollection<ChartDocument<T>>;
|
protected collection: ICollection<ChartDocument<T>>;
|
||||||
protected abstract generateInitialStats(): T;
|
protected abstract generateInitialStats(): T;
|
||||||
|
|
Loading…
Reference in a new issue