youtubei.js / Generator / toTypeDeclaration
Function: toTypeDeclaration()
toTypeDeclaration(
inference_type
,indentation
):string
Defined in: src/parser/generator.ts:520
For a given inference type, get the typescript type declaration
Parameters
inference_type
The inference type to get the declaration for
indentation
number
= 0
The indentation level (used for objects)
Returns
string
Typescript type declaration