Module

x/ts_morph/mod.ts>NamedTupleMember

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class NamedTupleMember
extends NamedTupleMemberBase<ts.NamedTupleMember>
import { NamedTupleMember } from "https://dotland.deno.dev/x/ts_morph@20.0.0/mod.ts";

A named/labeled tuple element.

Ex. start: number in type Range = [start: number, end: number]

Methods

getParent(): NodeParentType<ts.NamedTupleMember>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.NamedTupleMember>>
getTypeNode(): TypeNode<ts.TypeNode>

Gets the named tuple type's type.

removeType(): never

Throws. This is not supported for NamedTupleMember.