mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
feat(all): strong typed ComponentProps
This commit is contained in:
@ -2,7 +2,7 @@ import { AnimationBuilder, HTMLIonOverlayElement, IonicConfig, OverlayInterface
|
||||
|
||||
let lastId = 0;
|
||||
|
||||
export function createOverlay<T extends HTMLIonOverlayElement & Required<B>, B>(element: T, opts: B): Promise<T> {
|
||||
export function createOverlay<T extends HTMLIonOverlayElement>(element: T, opts: object | undefined): Promise<T> {
|
||||
const doc = element.ownerDocument;
|
||||
connectListeners(doc);
|
||||
|
||||
|
Reference in New Issue
Block a user