youtubei.js / Utils / hasKeys
Function: hasKeys()
hasKeys<
T
,R
>(params
, ...keys
):params is Exclude<T, R[number]> & Required<Pick<T, R[number]>>
Type Parameters
• T extends object
• R extends keyof T
[]
Parameters
• params: T
• ...keys: R
Returns
params is Exclude<T, R[number]> & Required<Pick<T, R[number]>>