mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-25 07:42:11 +00:00
refactor!: finish parser migration
Finally! :) This removes all code related to the old parser. #65
This commit is contained in:
12
lib/parser/classes/TextRun.js
Normal file
12
lib/parser/classes/TextRun.js
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
const NavigationEndpoint = require('./NavigationEndpoint');
|
||||
|
||||
class TextRun {
|
||||
constructor(data) {
|
||||
this.text = data.text;
|
||||
this.endpoint = data.navigationEndpoint ? new NavigationEndpoint(data.navigationEndpoint) : {};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = TextRun;
|
||||
Reference in New Issue
Block a user