示例工程 18-iife-module-pattern

18-iife-module-pattern/04-namespace-merging/types/app.d.ts

typescript · 0.1 KB

运行:18 · namespace-merging

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

// 第一部分:配置与版本
declare namespace App {
  interface Config {
    host: string;
  }
 
  const version: string;
}