(instantiable, type, replacement)
| 58449 | } |
| 58450 | } |
| 58451 | function replaceIndexedAccess(instantiable, type, replacement) { |
| 58452 | // map type.indexType to 0 |
| 58453 | // map type.objectType to `[TReplacement]` |
| 58454 | // thus making the indexed access `[TReplacement][0]` or `TReplacement` |
| 58455 | return instantiateType(instantiable, createTypeMapper([type.indexType, type.objectType], [getNumberLiteralType(0), createTupleType([replacement])])); |
| 58456 | } |
| 58457 | function resolveReverseMappedTypeMembers(type) { |
| 58458 | var indexInfo = getIndexInfoOfType(type.source, stringType); |
| 58459 | var modifiers = getMappedTypeModifiers(type.mappedType); |
no test coverage detected