Function getNotifications
getNotifications(): Promise< { notifications: { commands?: string[]; cta?: { label: string; url: string }; frequency: "always" | "once" | "once_a_day" | "once_a_week"; id: string; maxDate?: string; maxVersion?: string; message: string; minDate?: string; minVersion?: string; ownerChannel: string; surface?: string; title?: string; type: "error" | "info" | "warning"; }[]; },> Returns Promise<
{
notifications: {
commands?: string[];
cta?: { label: string; url: string };
frequency: "always" | "once" | "once_a_day" | "once_a_week";
id: string;
maxDate?: string;
maxVersion?: string;
message: string;
minDate?: string;
minVersion?: string;
ownerChannel: string;
surface?: string;
title?: string;
type: "error" | "info" | "warning";
}[];
},
>
A Notifications object.
Get notifications list from cache, that is updated in the background from bin/fetch-notifications.json.