Back in the day, older versions of Typescript required adding the well-known
/// <reference
tag to include necessary references. But now, starting from version 1.6, we can import dependencies using the modern ES6 way
import Greeter from "./greeter";
I've been doing some research on this topic, but I'm still not clear on whether or why it's important to completely avoid triple-slash references.
By the way, does the compiler automatically know the order to compile TS files if we utilize filesGlob
instead of files
in tsconfig.json?