Node.js 12.x 的最佳 --lib 选项

时间:2021-03-08 21:43:32

标签: node.js typescript tsconfig

15.x 之前的节点版本不公开 String.prototype.replaceAll,我的应用程序在 12.x 上运行。但是我的 TypeScript 设置仍然接受 .replaceAll() 作为有效。我应该在 compilerOptions.libtsconfig.json 条目中放入什么才能最好地匹配 Node.js 12.x?

0 个答案:

没有答案