* @param {string} filename
(filename)
| 55 | * @param {string} filename |
| 56 | */ |
| 57 | function loadFile(filename) { |
| 58 | const raw = fs.readFileSync(filename, "utf-8"); |
| 59 | const content = raw |
| 60 | .replace(/export\s+type/g, "type") |
| 61 | .replace(/export\s+\*\s+from\s+"(.*)";?/g, "") |
| 62 | .replace(/import\s+\{([\s\S]*)\}\s+from\s+"(.*)";?/g, "") |
| 63 | .trim(); |
| 64 | return content; |
| 65 | } |
nothing calls this directly
no outgoing calls
no test coverage detected