Module

x/ts_morph/mod.ts>IndexSignatureDeclaration

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
class IndexSignatureDeclaration
extends IndexSignatureDeclarationBase<ts.IndexSignatureDeclaration>
import { IndexSignatureDeclaration } from "https://dotland.deno.dev/x/ts_morph@22.0.0/mod.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.