Skip to main content
Module

x/ts_morph/ts_morph.d.ts>Node#getChildAtIndexIfKindOrThrow

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
method Node.prototype.getChildAtIndexIfKindOrThrow
import { Node } from "https://deno.land/x/ts_morph@22.0.0/ts_morph.d.ts";

Gets the child at the specified index if it's the specified kind or throws an exception.

Parameters

index: number
  • Child index to get.
kind: TKind
  • Expected kind.
optional
message: string | (() => string)