Skip to content

Commit

Permalink
Tell prop's type with generic. Addition to #4597 (#4621)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruscoder authored and guyca committed Jan 23, 2019
1 parent 3fa61d4 commit 34f37aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/Navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class NavigationRoot {
/**
* Show a screen as a modal.
*/
public showModal(layout: Layout): Promise<any> {
public showModal<P>(layout: Layout<P>): Promise<any> {
return this.commands.showModal(layout);
}

Expand Down

0 comments on commit 34f37aa

Please sign in to comment.