Module

x/ts_morph/ts_morph.d.ts>IndexSignatureDeclaration

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

Methods

getKeyName(): string

Gets the key name.

Gets the key name node.

Gets the key type.

Gets the key type node.

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

Gets the structure equivalent to this node.

set(structure: Partial<IndexSignatureDeclarationStructure>): this

Sets the node from a structure.

setKeyName(name: string): void

Sets the key name.

setKeyType(type: string): this

Sets the key type.