Skip to main content
Module

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

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method Type.prototype.getArrayElementTypeOrThrow
import { Type } from "https://deno.land/x/ts_morph@17.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>