Compare commits

..

1 commit

Author SHA1 Message Date
20aa17df25 chore: Remove string-based type injection via ship() 2024-10-21 10:12:05 -07:00

View file

@ -225,8 +225,7 @@ export default function(filename, options = {}) {
let program = ts.createProgram([filename], options)
let checker = program.getTypeChecker()
const sourceFiles = program.getSourceFiles()
const filenameUnix = filename.replaceAll('\\', '/')
let sourceFile = sourceFiles.find(file => file.fileName === filenameUnix)
let sourceFile = sourceFiles.find(file => file.fileName === filename)
ts.forEachChild(sourceFile, visit(node, checker))