From 407d57ff6244919d0668121ac5ad26f02e40b6e1 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Sun, 6 Dec 2020 14:44:30 +0100 Subject: [PATCH] fix: fix tsc errors --- packages/core/ui/styling/style-scope.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/core/ui/styling/style-scope.ts b/packages/core/ui/styling/style-scope.ts index 8a8321e21..5ab4f2cda 100644 --- a/packages/core/ui/styling/style-scope.ts +++ b/packages/core/ui/styling/style-scope.ts @@ -386,7 +386,7 @@ if (application.hasLaunched()) { export class CssState { static emptyChangeMap: Readonly> = Object.freeze(new Map()); - static emptyPropertyBag: Readonly> = Object.freeze({}); + static emptyPropertyBag: Record = {}; static emptyAnimationArray: ReadonlyArray = Object.freeze([]); static emptyMatch: Readonly> = { selectors: [], @@ -398,7 +398,7 @@ export class CssState { _onDynamicStateChangeHandler: () => void; _appliedChangeMap: Readonly>; - private _appliedPropertyValues: Record; + private _appliedPropertyValues: Record = CssState.emptyPropertyBag; _appliedAnimations: ReadonlyArray; _appliedSelectorsVersion: number; @@ -663,7 +663,6 @@ export class CssState { } } CssState.prototype._appliedChangeMap = CssState.emptyChangeMap; -CssState.prototype._appliedPropertyValues = CssState.emptyPropertyBag; CssState.prototype._appliedAnimations = CssState.emptyAnimationArray; CssState.prototype._matchInvalid = true;