1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-11 21:29:08 +09:00

Update stats.ts

This commit is contained in:
syuilo 2018-10-21 10:35:37 +09:00
parent 17263fb459
commit be2cde106b

View File

@ -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;