(value: unknown)
| 118 | * within `TView.data`. |
| 119 | */ |
| 120 | export function isTNodeShape(value: unknown): value is TNode { |
| 121 | return ( |
| 122 | value != null && |
| 123 | typeof value === 'object' && |
| 124 | ((value as TNode).insertBeforeIndex === null || |
| 125 | typeof (value as TNode).insertBeforeIndex === 'number' || |
| 126 | Array.isArray((value as TNode).insertBeforeIndex)) |
| 127 | ); |
| 128 | } |
| 129 | |
| 130 | export function isLetDeclaration(tNode: TNode): boolean { |
| 131 | return !!(tNode.type & TNodeType.LetDeclaration); |
no test coverage detected
searching dependent graphs…