import { Node } from "https://deno.land/x/ts_morph@21.0.1/mod.ts";
Gets the first ancestor by syntax kind or throws if not found.
Type Parameters
TKind extends SyntaxKind
x/ts_morph/mod.ts>Node#getFirstAncestorByKindOrThrow
import { Node } from "https://deno.land/x/ts_morph@21.0.1/mod.ts";
Gets the first ancestor by syntax kind or throws if not found.