Refactor: Better type definition

This commit is contained in:
syuilo 2019-02-05 01:52:09 +09:00
parent 3cdadbec0d
commit 2b6bc12540

View File

@ -58,7 +58,7 @@ type Log<T extends Obj> = {
/**
*
*/
export default abstract class Chart<T> {
export default abstract class Chart<T extends Obj> {
protected collection: ICollection<Log<T>>;
protected abstract async getTemplate(init: boolean, latest?: T, group?: any): Promise<T>;
private name: string;