diff --git a/core/src/utils/overlays.ts b/core/src/utils/overlays.ts index 29fff9231b..d91f1d9745 100644 --- a/core/src/utils/overlays.ts +++ b/core/src/utils/overlays.ts @@ -3,7 +3,14 @@ import { Animation, AnimationBuilder, Config, Mode } from '../interface'; let lastId = 1; -export function createOverlay, B> +/** + * Convert an interface where all the properties are optional to mandatory. + */ +export type Requires = { + [P in K]: any; +}; + +export function createOverlay, B> (element: T, opts: B): Promise { // convert the passed in overlay options into props // that get passed down into the new overlay