import { Node } from "https://deno.land/x/ts_morph@18.0.0/mod.ts";
Get the first ancestor by syntax kind.
Type Parameters
TKind extends SyntaxKind
Returns
KindToNodeMappings[TKind] | undefined
x/ts_morph/mod.ts>Node#getFirstAncestorByKind
import { Node } from "https://deno.land/x/ts_morph@18.0.0/mod.ts";
Get the first ancestor by syntax kind.