📜  babel 如何生成打字稿定义 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:53.749000             🧑  作者: Mango

代码示例1
# add this in tsconfig.json

"emitDeclarationOnly": true,

# use this command

"clean": "rimraf esm",
"compiler": "npm run clean && tsc --pretty && babel --extensions '.ts' src -d esm",
"build": "npm run compiler"