From f822248901e80689c421d7216bf8c43e230ec4a4 Mon Sep 17 00:00:00 2001 From: Martin Probst Date: Fri, 27 Sep 2019 15:08:04 +0200 Subject: [PATCH] chore(drag-drop): Fix compilation in TS3.6. This version compiles in 3.5 and 3.6. --- src/cdk/drag-drop/drag-styling.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cdk/drag-drop/drag-styling.ts b/src/cdk/drag-drop/drag-styling.ts index b466db24aaee..4c57d0e406bc 100644 --- a/src/cdk/drag-drop/drag-styling.ts +++ b/src/cdk/drag-drop/drag-styling.ts @@ -30,7 +30,7 @@ export function extendStyles( source: Partial) { for (let key in source) { if (source.hasOwnProperty(key)) { - dest[key as keyof CSSStyleDeclaration] = source[key as keyof CSSStyleDeclaration]; + dest[key] = source[key]!; } }