Sfoglia il codice sorgente

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

Vadim Laletin 5 anni fa
parent
commit
34f37aa7c5
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      lib/src/Navigation.ts

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

@@ -115,7 +115,7 @@ export class NavigationRoot {
115 115
   /**
116 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 119
     return this.commands.showModal(layout);
120 120
   }
121 121