import { Node } from "https://deno.land/x/ts_morph@21.0.1/mod.ts";
Gets the first child by syntax kind or throws an error if not found.
Type Parameters
TKind extends SyntaxKind
Parameters
kind: TKind
- Syntax kind.
x/ts_morph/mod.ts>Node#getFirstChildByKindOrThrow
import { Node } from "https://deno.land/x/ts_morph@21.0.1/mod.ts";
Gets the first child by syntax kind or throws an error if not found.