Home > ts-morph-structures > TypeMembersMap > resolveIndexSignature
Replace an index signature with other methods/properties matching the signature’s return type.
It is up to you to ensure the names match the key type of the index signature.
Signature:
resolveIndexSignature(signature: IndexSignatureDeclarationImpl, names: string[]): MethodSignatureImpl[] | PropertySignatureImpl[];
Parameter | Type | Description |
---|---|---|
signature | IndexSignatureDeclarationImpl | the signature (which must be a member of this) to resolve. |
names | string[] | the names to replace the signature’s key with. |
Returns: