youtubei.js / Generator / generateRuntimeClass
Function: generateRuntimeClass()
generateRuntimeClass(
classname
,classdata
,logger
):YTNodeConstructor
<YTNode
>
Given example data for a class, introspect, implement dependencies, and create a new class
Parameters
• classname: string
The name of the class
• classdata: unknown
The example of the class
• logger: ParserErrorHandler
Returns
Class based on the example classdata extending YTNode