Skip to content

Commit

Permalink
fix(overlay): make type an any
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartington committed Jun 14, 2018
1 parent c11d74b commit 15dc651
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ import {
RouteID,
RouterDirection,
RouterEventDetail,
RouterIntent,
RouterOutletOptions,
RouteWrite,
SelectInputChangeEvent,
Expand All @@ -89,6 +88,9 @@ import {
import {
ViewController,
} from './components/nav/view-controller';
import {
RouterIntent,
} from './components/router/utils/constants';
import {
ScrollBaseDetail,
ScrollDetail,
Expand Down
2 changes: 1 addition & 1 deletion core/src/utils/overlays.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15dc651

Please sign in to comment.