(input, baseType)
| 55234 | return results; |
| 55235 | } |
| 55236 | function serializeIndexSignatures(input, baseType) { |
| 55237 | var results = []; |
| 55238 | for (var _i = 0, _a = getIndexInfosOfType(input); _i < _a.length; _i++) { |
| 55239 | var info = _a[_i]; |
| 55240 | if (baseType) { |
| 55241 | var baseInfo = getIndexInfoOfType(baseType, info.keyType); |
| 55242 | if (baseInfo) { |
| 55243 | if (isTypeIdenticalTo(info.type, baseInfo.type)) { |
| 55244 | continue; // elide identical index signatures |
| 55245 | } |
| 55246 | } |
| 55247 | } |
| 55248 | results.push(indexInfoToIndexSignatureDeclarationHelper(info, context, /*typeNode*/ undefined)); |
| 55249 | } |
| 55250 | return results; |
| 55251 | } |
| 55252 | function serializeBaseType(t, staticType, rootName) { |
| 55253 | var ref = trySerializeAsTypeReference(t, 111551 /* SymbolFlags.Value */); |
| 55254 | if (ref) { |
no test coverage detected
searching dependent graphs…