YouTube.js
Guide
Discord
GitHub
Guide
Discord
GitHub

youtubei.js / Generator / inferType

Function: inferType()

inferType(key, value): InferenceType

Infer the type of key given its value

Parameters

• key: string

The key to infer the type of

• value: unknown

The value of the key

Returns

InferenceType

The inferred type

Defined in

src/parser/generator.ts:92

Edit this page
Last Updated:: 3/25/25, 8:08 PM
Contributors: EdamAme-x