Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ts_morph/ts_morph.d.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://deno.land/x/ts_morph@16.0.0/ts_morph.d.ts";

A named/labeled tuple element.

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

Methods

getParent(): NodeParentType<ts.NamedTupleMember>
getParentOrThrow(): NonNullable<NodeParentType<ts.NamedTupleMember>>
getTypeNode(): TypeNode<ts.TypeNode>

Gets the named tuple type's type.

removeType(): never

Throws. This is not supported for NamedTupleMember.