import { Node } from "https://deno.land/x/ts_morph@15.1.0/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@15.1.0/mod.ts";
Gets the first ancestor by syntax kind or throws if not found.