UNPKG

@furystack/shades-common-components

Version:

Common UI components for FuryStack Shades

17 lines 537 B
import type { Token } from '@furystack/inject'; import { EventHub } from '@furystack/utils'; export interface NotyModel { type: 'error' | 'warning' | 'info' | 'success'; title: string; body: any; timeout?: number; } export type NotyServiceEvents = { onNotyAdded: NotyModel; onNotyRemoved: NotyModel; }; export interface NotyService extends EventHub<NotyServiceEvents> { getNotyList(): NotyModel[]; } export declare const NotyService: Token<NotyService, 'singleton'>; //# sourceMappingURL=noty-service.d.ts.map