An ECMAScript module can export one default value, either directly or alongside named exports. The importer chooses the local name for that value; an existing variable or function keeps its name hidden from the importer. section 13.1.1
Listing 13.5 Importing a default value along with named values
import hero, { #A
tsundere, #A
yandere, #A
} from "./4-default-export.ts"; #A
console.assert(
hero === "Ranma",
"Ranma is the hero",
);
console.assert(
tsundere === "Akane",
"Akane is the tsundere",
);
console.assert(
yandere === "Shampoo",
"Shampoo is the yandere",
);The import binds the default value to `hero` and named exports to their matching names. section 13.1.1
A default import is not the whole module: namespace imports expose it as `default`. CommonJS interop can complicate this distinction: Node.js `require()` of ESM returns a namespace object, while ESM importing TypeScript compiled to CommonJS may receive the whole exports object as its default; the actual value is then at `.default`. section 13.1.1 section 13.2.1



