Module

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

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

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

Returns

Type<ts.Type> | undefined