mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +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,
|
RouteID,
|
||||||
RouterDirection,
|
RouterDirection,
|
||||||
RouterEventDetail,
|
RouterEventDetail,
|
||||||
RouterIntent,
|
|
||||||
RouterOutletOptions,
|
RouterOutletOptions,
|
||||||
RouteWrite,
|
RouteWrite,
|
||||||
SelectInputChangeEvent,
|
SelectInputChangeEvent,
|
||||||
@ -89,6 +88,9 @@ import {
|
|||||||
import {
|
import {
|
||||||
ViewController,
|
ViewController,
|
||||||
} from './components/nav/view-controller';
|
} from './components/nav/view-controller';
|
||||||
|
import {
|
||||||
|
RouterIntent,
|
||||||
|
} from './components/router/utils/constants';
|
||||||
import {
|
import {
|
||||||
ScrollBaseDetail,
|
ScrollBaseDetail,
|
||||||
ScrollDetail,
|
ScrollDetail,
|
||||||
|
@ -10,7 +10,7 @@ export type Requires<K extends string> = {
|
|||||||
[P in K]: any;
|
[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> {
|
(element: T, opts: B): Promise<T | null> {
|
||||||
// convert the passed in overlay options into props
|
// convert the passed in overlay options into props
|
||||||
// that get passed down into the new overlay
|
// that get passed down into the new overlay
|
||||||
|
Reference in New Issue
Block a user