import { Node } from "https://deno.land/x/ts_morph@21.0.1/mod.ts";
Gets the parent if it's a certain syntax kind.
Type Parameters
TKind extends SyntaxKind
Parameters
kind: TKind
Returns
KindToNodeMappings[TKind] | undefined
x/ts_morph/mod.ts>Node#getParentIfKind
import { Node } from "https://deno.land/x/ts_morph@21.0.1/mod.ts";
Gets the parent if it's a certain syntax kind.