示例工程 21-commonjs-snapshot

21-commonjs-snapshot/03-circular/cjs/b.ts

typescript · 0.2 KB

运行:21 · circular

点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。

import a = require('./a');
 
interface BShape {
  name: string;
  aName: string | undefined;
}
 
const b: BShape = {
  name: 'b',
  aName: a.name,
};
 
export = b;