摘要: 这样做的目的是避免循环引用,编写多余的类型文件 //global.d.ts import type { A } from "./a"; import type { B } from "./b"; declare global { var a: A; var b: B; } //index.ts im 阅读全文
posted @ 2024-05-23 08:21 Ajanuw 阅读(8) 评论(0) 推荐(0) 编辑