mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-13 01:22:11 +00:00
feat(parser): Add Form.ts parser class (#1056)
* feat(parser): Add Form.ts parser class Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
This commit is contained in:
15
src/parser/classes/Form.ts
Normal file
15
src/parser/classes/Form.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { YTNode } from '../helpers.js';
|
||||
import { Parser, type RawNode } from '../index.js';
|
||||
import { type ObservedArray } from '../helpers.js';
|
||||
import ToggleFormField from './ToggleFormField.js';
|
||||
|
||||
export default class Form extends YTNode {
|
||||
static type = 'Form';
|
||||
|
||||
fields: ObservedArray<ToggleFormField>;
|
||||
|
||||
constructor(data: RawNode) {
|
||||
super();
|
||||
this.fields = Parser.parseArray(data.fields, ToggleFormField);
|
||||
}
|
||||
}
|
||||
@@ -181,6 +181,7 @@ export { default as FeedFilterChipBar } from './classes/FeedFilterChipBar.js';
|
||||
export { default as FeedNudge } from './classes/FeedNudge.js';
|
||||
export { default as FeedTabbedHeader } from './classes/FeedTabbedHeader.js';
|
||||
export { default as FlexibleActionsView } from './classes/FlexibleActionsView.js';
|
||||
export { default as Form } from './classes/Form.js';
|
||||
export { default as FormFooterView } from './classes/FormFooterView.js';
|
||||
export { default as GameCard } from './classes/GameCard.js';
|
||||
export { default as GameDetails } from './classes/GameDetails.js';
|
||||
|
||||
Reference in New Issue
Block a user