MCPcopy Create free account
hub / github.com/angular/angular / isTNodeShape

Function isTNodeShape

packages/core/src/render3/interfaces/node.ts:129–137  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

127 * within `TView.data`.
128 */
129export function isTNodeShape(value: unknown): value is TNode {
130 return (
131 value != null &&
132 typeof value === 'object' &&
133 ((value as TNode).insertBeforeIndex === null ||
134 typeof (value as TNode).insertBeforeIndex === 'number' ||
135 Array.isArray((value as TNode).insertBeforeIndex))
136 );
137}
138
139export function isLetDeclaration(tNode: TNode): boolean {
140 return !!(tNode.type & TNodeType.LetDeclaration);

Callers 3

resetProjectionStateFunction · 0.90
serializeLViewFunction · 0.90

Calls 1

isArrayMethod · 0.80

Tested by

no test coverage detected