Module

x/ts_morph/ts_morph.d.ts>Type#getArrayElementTypeOrThrow

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

Gets the array element type or throws if it doesn't exist (ex. for T[] it would be T).

Parameters

optional
message: string | (() => string)

Returns

Type<ts.Type>