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