Files
YouTube.js/docs/api/namespaces/Generator/functions/mergeKeyInfo.md
Luan 74659fd03f chore: add proper documentation (#763)
* chore: generate API ref using `typedoc`

* chore: declutter readme and add links to ytjs.dev

* chore: clean up
2024-09-23 17:32:50 -03:00

825 B

youtubei.js / Generator / mergeKeyInfo

Function: mergeKeyInfo()

mergeKeyInfo(key_info, new_key_info): object

Merges two sets of key info, resolving any conflicts

Parameters

key_info: KeyInfo

The current key info

new_key_info: KeyInfo

The new key info

Returns

object

The merged key info

changed_keys

changed_keys: [string, InferenceType][]

resolved_key_info

resolved_key_info: [string, InferenceType][]

Defined in

src/parser/generator.ts:736