createNotification
Types
function createNotification<GName extends string, GValue>(
name: GName,
value: GValue,
): INotification<GName, GValue>
Definition
Used to create a INotification.
Example
Emit a single 'upload-done' Notification
const subscribe = single(createNotification('upload-done', void 0));
subscribe((notification) => {
console.log(notification);
});
Output:
{ name: 'upload-done', value: undefined }