mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
fix(overlay): make type an any
This commit is contained in:
4
core/src/components.d.ts
vendored
4
core/src/components.d.ts
vendored
@ -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,
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user