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