youtubei.js / Generator / toTypeDeclaration
Function: toTypeDeclaration()
toTypeDeclaration(
inference_type
,indentation
):string
For a given inference type, get the typescript type declaration
Parameters
• inference_type: InferenceType
The inference type to get the declaration for
• indentation: number
= 0
The indentation level (used for objects)
Returns
string
Typescript type declaration