mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-26 08:08:54 +00:00
19 lines
459 B
TypeScript
19 lines
459 B
TypeScript
import type { IRemoveLikeRequest, RemoveLikeEndpointOptions } from '../../../types/index.js';
|
|
|
|
export const PATH = '/like/removelike';
|
|
|
|
/**
|
|
* Builds a `/like/removelike` endpoint payload.
|
|
* @param options - The options to use.
|
|
* @returns The payload.
|
|
*/
|
|
export function build(options: RemoveLikeEndpointOptions): IRemoveLikeRequest {
|
|
return {
|
|
target: {
|
|
videoId: options.target.video_id
|
|
},
|
|
...{
|
|
client: options.client
|
|
}
|
|
};
|
|
} |