mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-05 02:09:02 +09:00
Refactor: Better type definition
This commit is contained in:
parent
5410efe9ca
commit
00b2d89f1a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user