@snipsonian/observable-state
Version:
Observable-state snippets (redux-like)
12 lines (11 loc) • 694 B
TypeScript
export declare type TNrOfParentNotificationLevelsToTrigger = number | false;
export interface ITriggerParentNotifications {
nrOfLevels?: TNrOfParentNotificationLevelsToTrigger;
notificationDelimiter?: string;
}
export declare const DEFAULT_NR_OF_PARENT_NOTIFICATION_LEVELS_TO_TRIGGER: TNrOfParentNotificationLevelsToTrigger;
export declare const DEFAULT_PARENT_NOTIFICATIONS_DELIMITER = ".";
export default function extendNotificationsToTrigger<StateChangeNotificationKey>({ notificationsToTrigger, triggerParentNotifications, }: {
notificationsToTrigger: StateChangeNotificationKey[];
triggerParentNotifications?: ITriggerParentNotifications;
}): StateChangeNotificationKey[];