feat(parser): Add PlayerOverflow and PlayerControlsOverlay

This commit is contained in:
LuanRT
2023-10-28 13:17:26 -03:00
parent bc97e07ac6
commit a45273fec4
3 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import { YTNode } from '../helpers.js';
import { Parser, type RawNode } from '../index.js';
import PlayerOverflow from './PlayerOverflow.js';
export default class PlayerControlsOverlay extends YTNode {
static type = 'PlayerControlsOverlay';
overflow: PlayerOverflow | null;
constructor(data: RawNode) {
super();
this.overflow = Parser.parseItem(data.overflow, PlayerOverflow);
}
}