New: Intelligent Flashcards spaced-repetition decks for every topic, built to make things actually stick.
What makes a TypeScript file count as a module rather than a plain script?
The nearest package.json above it contains "type": "module"
"type": "module"
It has at least one top-level import or export
import
export
The module option in tsconfig.json is set to an ESM value
module