mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-26 16:18:51 +00:00
refactor: migrate parsers to TS (#133)
* dev: finish top-level parsers TS migration
* dev: migrate menu renderers to TS
* chore: fix ts errors
* dev: finish ts migration 🎉
This commit is contained in:
19
src/parser/classes/menus/MultiPageMenuNotificationSection.ts
Normal file
19
src/parser/classes/menus/MultiPageMenuNotificationSection.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import Parser from '../../index';
|
||||
import { YTNode } from '../../helpers';
|
||||
|
||||
class MultiPageMenuNotificationSection extends YTNode {
|
||||
static type = 'MultiPageMenuNotificationSection';
|
||||
|
||||
items;
|
||||
|
||||
constructor(data: any) {
|
||||
super();
|
||||
this.items = Parser.parse(data.items);
|
||||
}
|
||||
|
||||
get contents() {
|
||||
return this.items;
|
||||
}
|
||||
}
|
||||
|
||||
export default MultiPageMenuNotificationSection;
|
||||
Reference in New Issue
Block a user