I'm not able to find out a good description of tpescript imports.
What are the difference between this import types?
import { Country } from '../../models/country.model.ts';This seems normal. You import an exported class/interface of a project ts fileimport * as mapsData from 'blablabla/world.js';In this case am I referenceing a js file directly? Is this possible? Are there some preconditions? This works without using the allowJs flag.import something from 'path'Why is this case I'm not using brackets?
allowJSin tsconfig.json file. The default option isfalse. Refer to: typescriptlang.org/docs/handbook/compiler-options.htmlimport something from 'path'mean this module hasdefault export.Without'./path', you refer to module rather than local files.