Browse Source

Update ModalDismissedEvent interface

modalsDismissed was missing from event declaration. This obscure property represents the number of modals which were dismissed. When dismissModal is called it's 1 and when dismissAllModals is called, it's the number of modals which were visible on screen.
Guy Carmeli 5 years ago
parent
commit
0823a2c3ee
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      lib/src/interfaces/ComponentEvents.ts

+ 2
- 1
lib/src/interfaces/ComponentEvents.ts View File

4
 
4
 
5
 export interface ComponentDidAppearEvent extends ComponentEvent {
5
 export interface ComponentDidAppearEvent extends ComponentEvent {
6
   componentName: string;
6
   componentName: string;
7
-  passProps?: object
7
+  passProps?: object;
8
 }
8
 }
9
 
9
 
10
 export interface ComponentDidDisappearEvent extends ComponentEvent {
10
 export interface ComponentDidDisappearEvent extends ComponentEvent {
17
 
17
 
18
 export interface ModalDismissedEvent extends ComponentEvent {
18
 export interface ModalDismissedEvent extends ComponentEvent {
19
   componentId: string;
19
   componentId: string;
20
+  modalsDismissed: number;
20
 }
21
 }
21
 
22
 
22
 export interface SearchBarUpdatedEvent extends ComponentEvent {
23
 export interface SearchBarUpdatedEvent extends ComponentEvent {