mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 19:12:24 +00:00
16 lines
494 B
TypeScript
16 lines
494 B
TypeScript
import type { IGetNotificationMenuRequest, GetNotificationMenuEndpointOptions } from '../../types/index.ts';
|
|
|
|
export const PATH = '/notification/get_notification_menu';
|
|
|
|
/**
|
|
* Builds a `/get_notification_menu` request payload.
|
|
* @param opts - The options to use.
|
|
* @returns The payload.
|
|
*/
|
|
export function build(opts: GetNotificationMenuEndpointOptions): IGetNotificationMenuRequest {
|
|
return {
|
|
...{
|
|
notificationsMenuRequestType: opts.notifications_menu_request_type
|
|
}
|
|
};
|
|
} |