From 8aa696537bc77254bc0615b7dc9cda430e3c1b43 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Mon, 14 May 2018 17:31:17 +0200 Subject: [PATCH] fix(angular): Required<> is not available --- core/src/utils/overlays.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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