@magicbell/core
Version:
Official MagicBell API wrapper
14 lines (13 loc) • 419 B
TypeScript
/**
* A factory to create notifications. It implements identity map so there is
* one and only one representation of a notification in the system.
*
* @example
* const notification = NotificationFactory.create({ id });
* notification.fetch();
*/
export default class NotificationFactory {
static identityMap: Map<any, any>;
static create(data: any): any;
static cacheInstance(instance: any): void;
}