import { Node } from "https://deno.land/x/ts_morph@21.0.1/mod.ts";
Gets the child at the specified index if it's the specified kind or throws an exception.
Type Parameters
TKind extends SyntaxKind
Parameters
kind: TKind
- Expected kind.
x/ts_morph/mod.ts>Node#getChildAtIndexIfKindOrThrow
import { Node } from "https://deno.land/x/ts_morph@21.0.1/mod.ts";
Gets the child at the specified index if it's the specified kind or throws an exception.