From bc23fbad608dc9e38a7f09ff76868867310a4d62 Mon Sep 17 00:00:00 2001 From: Henrik Raitasola Date: Sun, 20 Jan 2019 13:08:49 +0200 Subject: [PATCH] Tell prop's type with generic (#4597) --- lib/src/Navigation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/Navigation.ts b/lib/src/Navigation.ts index 08fb0405438..436eb659b55 100644 --- a/lib/src/Navigation.ts +++ b/lib/src/Navigation.ts @@ -164,7 +164,7 @@ export class NavigationRoot { /** * Sets new root component to stack. */ - public setStackRoot(componentId: string, layout: Layout | Layout[]): Promise { + public setStackRoot

(componentId: string, layout: Layout

| Array>): Promise { const children: Layout[] = isArray(layout) ? layout : [layout]; return this.commands.setStackRoot(componentId, children); } @@ -172,7 +172,7 @@ export class NavigationRoot { /** * Show overlay on top of the entire app */ - public showOverlay(layout: Layout): Promise { + public showOverlay

(layout: Layout

): Promise { return this.commands.showOverlay(layout); }