@@ -65,9 +65,9 @@ export class NotifierContainerComponent implements OnDestroy, OnInit {
6565 /**
6666 * Constructor
6767 *
68- * @param { ChangeDetectorRef } changeDetector Change detector, used for manually triggering change detection runs
69- * @param { NotifierQueueService } notifierQueueService Notifier queue service
70- * @param { NotifierService } notifierService Notifier service
68+ * @param changeDetector Change detector, used for manually triggering change detection runs
69+ * @param notifierQueueService Notifier queue service
70+ * @param notifierService Notifier service
7171 */
7272 public constructor ( changeDetector : ChangeDetectorRef , notifierQueueService : NotifierQueueService , notifierService : NotifierService ) {
7373 this . changeDetector = changeDetector ;
@@ -99,9 +99,9 @@ export class NotifierContainerComponent implements OnDestroy, OnInit {
9999 /**
100100 * Notification identifier, used as the ngFor trackby function
101101 *
102- * @param { number } index Index
103- * @param { NotifierNotification } notification Notifier notification
104- * @returns { string } Notification ID as the unique identnfier
102+ * @param index Index
103+ * @param notification Notifier notification
104+ * @returns Notification ID as the unique identnfier
105105 */
106106 public identifyNotification ( index : number , notification : NotifierNotification ) : string {
107107 return notification . id ;
@@ -110,7 +110,7 @@ export class NotifierContainerComponent implements OnDestroy, OnInit {
110110 /**
111111 * Event handler, handles clicks on notification dismiss buttons
112112 *
113- * @param { string } notificationId ID of the notification to dismiss
113+ * @param notificationId ID of the notification to dismiss
114114 */
115115 public onNotificationDismiss ( notificationId : string ) : void {
116116 this . queueService . push ( {
@@ -122,7 +122,7 @@ export class NotifierContainerComponent implements OnDestroy, OnInit {
122122 /**
123123 * Event handler, handles notification ready events
124124 *
125- * @param { NotifierNotificationComponent } notificationComponent Notification component reference
125+ * @param notificationComponent Notification component reference
126126 */
127127 public onNotificationReady ( notificationComponent : NotifierNotificationComponent ) : void {
128128 let currentNotification : NotifierNotification = this . notifications [ this . notifications . length - 1 ] ; // Get the latest notification
@@ -133,8 +133,8 @@ export class NotifierContainerComponent implements OnDestroy, OnInit {
133133 /**
134134 * Handle incoming actions by mapping action types to methods, and then running them
135135 *
136- * @param { NotifierAction } action Action object
137- * @returns { Promise<undefined> } Promise, resolved when done
136+ * @param action Action object
137+ * @returns Promise, resolved when done
138138 */
139139 private handleAction ( action : NotifierAction ) : Promise < undefined > {
140140 switch ( action . type ) { // TODO: Maybe a map (actionType -> class method) is a cleaner solution here?
@@ -160,8 +160,8 @@ export class NotifierContainerComponent implements OnDestroy, OnInit {
160160 *
161161 * We simply add the notification to the list, and then wait until its properly initialized / created / rendered.
162162 *
163- * @param { NotifierAction } action Action object
164- * @returns { Promise<undefined> } Promise, resolved when done
163+ * @param action Action object
164+ * @returns Promise, resolved when done
165165 */
166166 private handleShowAction ( action : NotifierAction ) : Promise < undefined > {
167167 return new Promise < undefined > ( ( resolve : ( ) => void , reject : ( ) => void ) => {
@@ -178,7 +178,7 @@ export class NotifierContainerComponent implements OnDestroy, OnInit {
178178 * shift all older notifications, and then show our new notification. In addition, if there are too many notification on the screen,
179179 * we hide the oldest one first. Furthermore, if configured, animation overlapping is applied.
180180 *
181- * @param { NotifierNotification } notification New notification to show
181+ * @param notification New notification to show
182182 */
183183 private continueHandleShowAction ( notification : NotifierNotification ) : void {
184184
@@ -281,8 +281,8 @@ export class NotifierContainerComponent implements OnDestroy, OnInit {
281281 * notification. If there exist older notifications, we then shift them around to fill the gap. Once both hiding the given notification
282282 * and shifting the older notificaitons is done, the given notification gets finally removed (from the DOM).
283283 *
284- * @param { NotifierAction } action Action object, payload contains the notification ID
285- * @returns { Promise<undefined> } Promise, resolved when done
284+ * @param action Action object, payload contains the notification ID
285+ * @returns Promise, resolved when done
286286 */
287287 private handleHideAction ( action : NotifierAction ) : Promise < undefined > {
288288 return new Promise < undefined > ( ( resolve : ( ) => void , reject : ( ) => void ) => {
@@ -345,8 +345,8 @@ export class NotifierContainerComponent implements OnDestroy, OnInit {
345345 /**
346346 * Hide the oldest notification (bridge to handleHideAction)
347347 *
348- * @param { NotifierAction } action Action object
349- * @returns { Promise<undefined> } Promise, resolved when done
348+ * @param action Action object
349+ * @returns Promise, resolved when done
350350 */
351351 private handleHideOldestAction ( action : NotifierAction ) : Promise < undefined > {
352352
@@ -365,8 +365,8 @@ export class NotifierContainerComponent implements OnDestroy, OnInit {
365365 /**
366366 * Hide the newest notification (bridge to handleHideAction)
367367 *
368- * @param { NotifierAction } action Action object
369- * @returns { Promise<undefined> } Promise, resolved when done
368+ * @param action Action object
369+ * @returns Promise, resolved when done
370370 */
371371 private handleHideNewestAction ( action : NotifierAction ) : Promise < undefined > {
372372
@@ -385,8 +385,8 @@ export class NotifierContainerComponent implements OnDestroy, OnInit {
385385 /**
386386 * Hide all notifications at once
387387 *
388- * @param { NotifierAction } action Action object
389- * @returns { Promise<undefined> } Promise, resolved when done
388+ * @param action Action object
389+ * @returns Promise, resolved when done
390390 */
391391 private handleHideAllAction ( action : NotifierAction ) : Promise < undefined > {
392392 return new Promise < undefined > ( ( resolve : ( ) => void , reject : ( ) => void ) => {
@@ -437,10 +437,10 @@ export class NotifierContainerComponent implements OnDestroy, OnInit {
437437 /**
438438 * Shift multiple notifications at once
439439 *
440- * @param { Array<NotifierNotification> } notifications List containing the notifications to be shifted
441- * @param { number } distance Distance to shift (in px)
442- * @param { boolean } toMakePlace Flag, defining in which direciton to shift
443- * @returns { Promise<undefined> } Promise, resolved when done
440+ * @param notifications List containing the notifications to be shifted
441+ * @param distance Distance to shift (in px)
442+ * @param toMakePlace Flag, defining in which direciton to shift
443+ * @returns Promise, resolved when done
444444 */
445445 private shiftNotifications ( notifications : Array < NotifierNotification > , distance : number , toMakePlace : boolean ) : Promise < undefined > {
446446 return new Promise < undefined > ( ( resolve : ( ) => void , reject : ( ) => void ) => {
@@ -463,7 +463,7 @@ export class NotifierContainerComponent implements OnDestroy, OnInit {
463463 /**
464464 * Add a new notification to the list of notifications (triggers change detection)
465465 *
466- * @param { NotifierNotification } notification Notification to add to the list of notifications
466+ * @param notification Notification to add to the list of notifications
467467 */
468468 private addNotificationToList ( notification : NotifierNotification ) : void {
469469 this . notifications . push ( notification ) ;
@@ -473,7 +473,7 @@ export class NotifierContainerComponent implements OnDestroy, OnInit {
473473 /**
474474 * Remove an existing notification from the list of notifications (triggers change detection)
475475 *
476- * @param { NotifierNotification } notification Notification to be removed from the list of notifications
476+ * @param notification Notification to be removed from the list of notifications
477477 */
478478 private removeNotificationFromList ( notification : NotifierNotification ) : void {
479479 this . notifications =
@@ -492,8 +492,8 @@ export class NotifierContainerComponent implements OnDestroy, OnInit {
492492 /**
493493 * Helper: Find a notification in the notification list by a given notification ID
494494 *
495- * @param { string } notificationId Notification ID, used for finding notification
496- * @returns { NotifierNotification | undefined } Notification, undefined if not found
495+ * @param notificationId Notification ID, used for finding notification
496+ * @returns Notification, undefined if not found
497497 */
498498 private findNotificationById ( notificationId : string ) : NotifierNotification | undefined {
499499 return this . notifications . find ( ( currentNotification : NotifierNotification ) => currentNotification . id === notificationId ) ;
@@ -502,8 +502,8 @@ export class NotifierContainerComponent implements OnDestroy, OnInit {
502502 /**
503503 * Helper: Find a notification's index by a given notification ID
504504 *
505- * @param { string } notificationId Notification ID, used for finding a notification's index
506- * @returns { number | undefined } Notification index, undefined if not found
505+ * @param notificationId Notification ID, used for finding a notification's index
506+ * @returns Notification index, undefined if not found
507507 */
508508 private findNotificationIndexById ( notificationId : string ) : number | undefined {
509509 const notificationIndex : number =
0 commit comments