youtubei.js / Generator / inferType
Function: inferType()
inferType(
key
,value
):InferenceType
Infer the type of a key given its value
Parameters
• key: string
The key to infer the type of
• value: unknown
The value of the key
Returns
The inferred type