📅  最后修改于: 2022-03-11 14:48:28.010000             🧑  作者: Mango
//Let's say you want to export the arr variable from file1.ts:
const arr = [1,2,3];
export { arr };
//Then you just have to import when you need it
import { arr } from "./file1";
console.log(arr.length);