method Node.prototype.getFirstAncestorByKindimport { Node } from "https://deno.land/x/fresh@1.4.3/src/dev/deps.ts"; getFirstAncestorByKind<TKind extends SyntaxKind>(kind: TKind): KindToNodeMappings[TKind] | undefinedGet the first ancestor by syntax kind. Get the first ancestor by syntax kind. Type ParametersTKind extends SyntaxKindParameterskind: TKind Syntax kind. ReturnsKindToNodeMappings[TKind] | undefined