浏览代码

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

Vadim Laletin 6 年前
父节点
当前提交
34f37aa7c5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      lib/src/Navigation.ts

+ 1
- 1
lib/src/Navigation.ts 查看文件

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