I want to open 'file1.ts' and write:
export var arr = [1,2,3];
and open another file, say 'file2.ts' and directly access 'arr' in file1.ts:
I'm doing it:
import {arr} from './file1';
However, when I want to access 'arr', I cannot just write 'arr', but I need to write 'arr.arr'. The first is for the name of the module. How to access directly the name of the exported variable?
import module export typescript
CrazySynthax
source share