Skip to main content
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://deno.land/x/ts_morph@15.1.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(): 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.