UNPKG

angular2-toaster-mod

Version:

An Angular 2 Toaster Notification library based on AngularJS-Toaster

1 lines 896 B
{"version":3,"file":"toast.js","sourceRoot":"","sources":["../../src/toast.ts"],"names":[],"mappings":"","sourcesContent":["import {BodyOutputType} from './bodyOutputType';\nimport {ToasterConfig} from './toaster-config';\n\nexport interface Toast {\n type: string;\n title?: string;\n body?: any;\n toastId?: string;\n toastContainerId?: number;\n onShowCallback?: OnActionCallback;\n onHideCallback?: OnActionCallback;\n timeout?: number;\n timeoutId?: number;\n bodyOutputType?: BodyOutputType;\n clickHandler?: ClickHandler;\n showCloseButton?: boolean;\n closeHtml?: string;\n toasterConfig? : ToasterConfig\n}\n\nexport interface ClickHandler {\n (toast: Toast, isCloseButton?: boolean) : boolean\n}\n\nexport interface OnActionCallback {\n (toast: Toast) : void\n}\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}