(type)
| 61806 | var typeVariable = getTypeParameterFromMappedType(mappedType); |
| 61807 | return isDistributive(getNameTypeFromMappedType(mappedType) || typeVariable); |
| 61808 | function isDistributive(type) { |
| 61809 | return type.flags & (3 /* TypeFlags.AnyOrUnknown */ | 131068 /* TypeFlags.Primitive */ | 131072 /* TypeFlags.Never */ | 262144 /* TypeFlags.TypeParameter */ | 524288 /* TypeFlags.Object */ | 67108864 /* TypeFlags.NonPrimitive */) ? true : |
| 61810 | type.flags & 16777216 /* TypeFlags.Conditional */ ? type.root.isDistributive && type.checkType === typeVariable : |
| 61811 | type.flags & (3145728 /* TypeFlags.UnionOrIntersection */ | 134217728 /* TypeFlags.TemplateLiteral */) ? ts.every(type.types, isDistributive) : |
| 61812 | type.flags & 8388608 /* TypeFlags.IndexedAccess */ ? isDistributive(type.objectType) && isDistributive(type.indexType) : |
| 61813 | type.flags & 33554432 /* TypeFlags.Substitution */ ? isDistributive(type.substitute) : |
| 61814 | type.flags & 268435456 /* TypeFlags.StringMapping */ ? isDistributive(type.type) : |
| 61815 | false; |
| 61816 | } |
| 61817 | } |
| 61818 | function getLiteralTypeFromPropertyName(name) { |
| 61819 | if (ts.isPrivateIdentifier(name)) { |
no test coverage detected