I\'m trying to get TS to narrow a type that I am manually modifying in a function:
interface Node { parent: string | null; } interface NoParent extends Node {