youtubei.js / Generator / createRuntimeClass
Function: createRuntimeClass()
createRuntimeClass(
classname
,key_info
,logger
):YTNodeConstructor
Given a classname and its resolved key info, create a new class
Parameters
• classname: string
The name of the class
• key_info: KeyInfo
The resolved key info
• logger: ParserErrorHandler
Returns
Class based on the key info extending YTNode