IndexSignature
ts
export interface IndexSignature {
keyType?: string;
returnType?: string;
readonly?: boolean;
}WARNING
Not to be used directly.
Representation of an index signature in the TypeScript AST. This interface includes properties for the key type (the type of the index), the return type (the type of the value returned when indexing), and a boolean indicating whether the index signature is readonly. Index signatures are used to define types that can be indexed with a specific key type, such as objects with dynamic keys.