(value: unknown)
| 9 | } |
| 10 | |
| 11 | export function isNode(value: unknown): value is INode { |
| 12 | if (!value || typeof value !== 'object') return false; |
| 13 | return isBrand(value, nodeBrand); |
| 14 | } |
| 15 | |
| 16 | export function isNodeRef(value: Ref<unknown>): value is Ref<INode> { |
| 17 | return isBrand(value['~ref'], nodeBrand); |
no test coverage detected