feat(all): strong typed ComponentProps

This commit is contained in:
Manu Mtz.-Almeida
2018-08-27 00:47:10 +02:00
parent c446d1b6d1
commit 57d23753a6
17 changed files with 57 additions and 47 deletions

View File

@ -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);