Refactor: Better type definition

This commit is contained in:
syuilo 2019-02-05 01:52:09 +09:00
parent 5410efe9ca
commit 00b2d89f1a
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

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 collection: ICollection<Log<T>>;
protected abstract async getTemplate(init: boolean, latest?: T, group?: any): Promise<T>; protected abstract async getTemplate(init: boolean, latest?: T, group?: any): Promise<T>;
private name: string; private name: string;