| 79 | const isArray = rawType => reArray.test(rawType); |
| 80 | |
| 81 | const isUnionLiteral = typeObj => |
| 82 | typeObj.types.every( |
| 83 | t => |
| 84 | t.getFlags() & |
| 85 | (ts.TypeFlags.StringLiteral | |
| 86 | ts.TypeFlags.NumberLiteral | |
| 87 | ts.TypeFlags.EnumLiteral | |
| 88 | ts.TypeFlags.Undefined) |
| 89 | ); |
| 90 | |
| 91 | function logError(error, filePath) { |
| 92 | if (filePath) { |
no outgoing calls
no test coverage detected
searching dependent graphs…