mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-23 23:09:28 +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:
17
src/parser/classes/ProfileColumnStatsEntry.ts
Normal file
17
src/parser/classes/ProfileColumnStatsEntry.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import Text from './misc/Text';
|
||||
import { YTNode } from '../helpers';
|
||||
|
||||
class ProfileColumnStatsEntry extends YTNode {
|
||||
static type = 'ProfileColumnStatsEntry';
|
||||
|
||||
label: Text;
|
||||
value: Text;
|
||||
|
||||
constructor(data: any) {
|
||||
super();
|
||||
this.label = new Text(data.label);
|
||||
this.value = new Text(data.value);
|
||||
}
|
||||
}
|
||||
|
||||
export default ProfileColumnStatsEntry;
|
||||
Reference in New Issue
Block a user