revert: refactor(ivy): ensure StylingDebug instances provide context debug info (#32753) (#32841)

This reverts commit f8f7c1540a.

PR Close #32841
This commit is contained in:
Matias Niemelä
2019-09-24 14:50:24 -07:00
committed by Andrew Kushnir
parent e668d7971d
commit 948714c17c
3 changed files with 88 additions and 118 deletions

View File

@ -212,7 +212,7 @@ export function getStylingMapArray(value: TStylingContext | StylingMapArray | nu
value as StylingMapArray;
}
export function isStylingContext(value: any): boolean {
export function isStylingContext(value: TStylingContext | StylingMapArray | null): boolean {
// the StylingMapArray is in the format of [initial, prop, string, prop, string]
// and this is the defining value to distinguish between arrays
return Array.isArray(value) && value.length >= TStylingContextIndex.ValuesStartPosition &&