Browse Source

Tell prop's type with generic. Addition to #4597 (#4621)

Vadim Laletin 5 years ago
parent
commit
34f37aa7c5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/src/Navigation.ts

+ 1
- 1
lib/src/Navigation.ts View File

115
   /**
115
   /**
116
    * Show a screen as a modal.
116
    * Show a screen as a modal.
117
    */
117
    */
118
-  public showModal(layout: Layout): Promise<any> {
118
+  public showModal<P>(layout: Layout<P>): Promise<any> {
119
     return this.commands.showModal(layout);
119
     return this.commands.showModal(layout);
120
   }
120
   }
121
 
121