refactor: fix inconsistencies in the guide nodes (#379)

This commit is contained in:
LuanRT
2023-04-11 05:52:47 -03:00
committed by GitHub
parent 342d1d95e9
commit ec9c0979f5
6 changed files with 43 additions and 60 deletions

View File

@@ -1,14 +1,13 @@
import GuideEntry from './GuideEntry.js';
import type { RawNode } from '../index.js';
class GuideDownloadsEntry extends GuideEntry {
export default class GuideDownloadsEntry extends GuideEntry {
static type = 'GuideDownloadsEntry';
always_show: boolean;
constructor(data: any) {
constructor(data: RawNode) {
super(data.entryRenderer.guideEntryRenderer);
this.always_show = !!data.alwaysShow;
}
}
export default GuideDownloadsEntry;
}