A namespace import gathers a module’s exports behind one imported name. Access each export as a property, including a default export under the `default` property. section 13.1.1
Listing 13.6 Importing a module as a namespace
import * as characters from "./4-default-export.ts"; #A console.assert( characters.default === "Ranma", "The default export is Ranma", ); console.assert( Object.keys(characters).length === 3, "All 3 exports are included in the namespace", );
The `characters` namespace contains all three exports; the default export is available as `characters.default`. section 13.1.1
