fix(overlay): make type an any

This commit is contained in:
mhartington
2018-06-14 09:44:02 -04:00
parent c11d74b64e
commit 15dc651494
2 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -10,7 +10,7 @@ export type Requires<K extends string> = {
[P in K]: any;
};
export function createOverlay<T extends HTMLIonOverlayElement & Requires<keyof B>, B>
export function createOverlay<T extends HTMLIonOverlayElement & Requires<any>, B>
(element: T, opts: B): Promise<T | null> {
// convert the passed in overlay options into props
// that get passed down into the new overlay