- There are two files ( 1.ts , 2.ts ) lying on the same level (next to each other).
It works like this:import a from './2';
And so no longer:import a from '2';
What is the reason? Do I need to specify additional parameters in tsconfig.js or if I compile via CLI? If so, which ones?
- How to import (using es2015-syntax) js-files? For example, I want to install lodash using npm and import it in a similar way:
import _ from 'lodash';
How to do it?
.ts
file, then the full path to it is needed, if.d.ts
, then you can by name - Grundy