Skip to main content
Deno 2 is finally here 🎉️
Learn more
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@16.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(): 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.