Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: split out a common
typecheckFile
func (#344)
* refactor: split out a common typecheckFile func - this is used in 3 places and going to be more for the code I'm adding to fix type-only imports - so DRY it up and standardize the functionality too - some places had `noErrors = false` in one place while others had it in another - same for `printDiagnostics` - but the ordering actually doesn't matter, so just keep it consistent and the same - and then can split a common function that does both out - technically, now getDiagnostics is _only_ used in typecheckFile, so I could link to the two together, but I'm refactoring that one up a little - but this a good, small example of how refactoring one part of a codebase can make it easier to identify more similar pieces and then refactor even more * fix lint error on shadowed name
- Loading branch information