import { Node } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";
Goes up the parents (ancestors) of the node while a condition is true. Returns undefined if the initial parent doesn't match the condition.
Type Parameters
T extends Node
Goes up the parents (ancestors) of the node while a condition is true. Returns undefined if the initial parent doesn't match the condition.