Module

x/fresh/src/dev/deps.ts>Node#getParentIfKind

The next-gen web framework.
Extremely Popular
Go to Latest
method Node.prototype.getParentIfKind
import { Node } from "https://dotland.deno.dev/x/fresh@1.1.5/src/dev/deps.ts";

Gets the parent if it's a certain syntax kind.

Type Parameters

TKind extends SyntaxKind

Returns

KindToNodeMappings[TKind] | undefined