youtubei.js / Generator / generateTypescriptClass
Function: generateTypescriptClass()
generateTypescriptClass(
classname
,key_info
):string
Generate a typescript class based on the key info
Parameters
• classname: string
The name of the class
• key_info: KeyInfo
The key info, as returned by introspect
Returns
string
Typescript class file