import { noop } from '../../../../../../misc/helpers/noop'; import { STATIC_COMPLETE_NOTIFICATION } from '../../../../../../misc/notifications/built-in/complete/complete-notification.constant'; import { IObserver } from '../../../../../../observer/type/observer.type'; import { IObservable, IUnsubscribe } from '../../../../../type/observable.type'; import { IEmptyObservableNotifications } from './empty-observable-notifications.type'; export function emptyWithNotifications(): IObservable { return (emit: IObserver): IUnsubscribe => { emit(STATIC_COMPLETE_NOTIFICATION); return noop; }; }