UNPKG

@magicbell/react-headless

Version:

Hooks to build a notification inbox

18 lines (17 loc) 609 B
import INotificationStore from '../../../types/INotificationStore.js'; type Props = Omit<INotificationStore, 'context'>; type Options = { reset: boolean; prepend: boolean; }; /** * Function to set props on a notification store. The notifications are merged * unless `options.reset` is true. * * @param store Notifications store * @param props Props to set to the store * @param options.reset Do not prepend notifications to the store * @returns Store */ export default function setStoreProps(store: INotificationStore, props: Props, options?: Partial<Options>): INotificationStore; export {};