Does OCaml infer types between files?

Yes, OCaml decouples compilation of modules from each other. I collected some thoughts on that here: OCaml interface files–hero or menace? - DEV Community 👩‍💻👨‍💻