My answer refers to TypeScript 2+.
// 1.ts
export const AdminUser = { ... }
// index.ts
import * as users from './docs/users/admin';
var adminUser = users.AdminUser;
The only difference between your code and mine is the *
operator in the import statement.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…