UNPKG

@elemental-design/expo-notifications

Version:
19 lines (15 loc) 694 B
import { UnavailabilityError } from '@unimodules/core'; import NotificationChannelGroupManager from './NotificationChannelGroupManager'; import { NotificationChannelGroup, NotificationChannelGroupInput, } from './NotificationChannelGroupManager.types'; export default async function setNotificationChannelGroupAsync( groupId: string, group: NotificationChannelGroupInput ): Promise<NotificationChannelGroup | null> { if (!NotificationChannelGroupManager.setNotificationChannelGroupAsync) { throw new UnavailabilityError('Notifications', 'setNotificationChannelGroupAsync'); } return await NotificationChannelGroupManager.setNotificationChannelGroupAsync(groupId, group); }