From 15dc651494feed7f2f77d0b76f2482fa1626e981 Mon Sep 17 00:00:00 2001 From: mhartington Date: Thu, 14 Jun 2018 09:44:02 -0400 Subject: [PATCH] fix(overlay): make type an any --- core/src/components.d.ts | 4 +++- core/src/utils/overlays.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/components.d.ts b/core/src/components.d.ts index bbbb5f31f7..6e42f590ec 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -62,7 +62,6 @@ import { RouteID, RouterDirection, RouterEventDetail, - RouterIntent, RouterOutletOptions, RouteWrite, SelectInputChangeEvent, @@ -89,6 +88,9 @@ import { import { ViewController, } from './components/nav/view-controller'; +import { + RouterIntent, +} from './components/router/utils/constants'; import { ScrollBaseDetail, ScrollDetail, diff --git a/core/src/utils/overlays.ts b/core/src/utils/overlays.ts index 062f455a35..0cfd8dce30 100644 --- a/core/src/utils/overlays.ts +++ b/core/src/utils/overlays.ts @@ -10,7 +10,7 @@ export type Requires = { [P in K]: any; }; -export function createOverlay, B> +export function createOverlay, B> (element: T, opts: B): Promise { // convert the passed in overlay options into props // that get passed down into the new overlay