type_checks.ts (angular-11.0.1) | : | type_checks.ts (angular-11.0.2) | ||
---|---|---|---|---|
skipping to change at line 12 | skipping to change at line 12 | |||
* @license | * @license | |||
* Copyright Google LLC All Rights Reserved. | * Copyright Google LLC All Rights Reserved. | |||
* | * | |||
* Use of this source code is governed by an MIT-style license that can be | * Use of this source code is governed by an MIT-style license that can be | |||
* found in the LICENSE file at https://angular.io/license | * found in the LICENSE file at https://angular.io/license | |||
*/ | */ | |||
import {LContainer, TYPE} from './container'; | import {LContainer, TYPE} from './container'; | |||
import {ComponentDef, DirectiveDef} from './definition'; | import {ComponentDef, DirectiveDef} from './definition'; | |||
import {TNode, TNodeFlags} from './node'; | import {TNode, TNodeFlags} from './node'; | |||
import {RNode} from './renderer'; | import {RNode} from './renderer_dom'; | |||
import {FLAGS, LView, LViewFlags} from './view'; | import {FLAGS, LView, LViewFlags} from './view'; | |||
/** | /** | |||
* True if `value` is `LView`. | * True if `value` is `LView`. | |||
* @param value wrapped value of `RNode`, `LView`, `LContainer` | * @param value wrapped value of `RNode`, `LView`, `LContainer` | |||
*/ | */ | |||
export function isLView(value: RNode|LView|LContainer|{}|null): value is LView { | export function isLView(value: RNode|LView|LContainer|{}|null): value is LView { | |||
return Array.isArray(value) && typeof value[TYPE] === 'object'; | return Array.isArray(value) && typeof value[TYPE] === 'object'; | |||
} | } | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |