Skip to content
Snippets Groups Projects
Unverified Commit 00b2d89f authored by syuilo's avatar syuilo
Browse files

Refactor: Better type definition

parent 5410efe9
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment