es module导出方式

    1. export default Test;
    2. declare namespace Test {
    3. export const age = 10;
    4. export const name = 'test';
    5. }

    UMD导出方式

    1. export default Test;
    2. export as namespace Test; // umd
    3. declare namespace Test {
    4. export const age = 10;
    5. export const name = 'test';
    6. }