在tsconfig.json文件中,添加以下配置:
{
  "compilerOptions": {
    "allowJs": true,
    "declaration": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "lib": [
      "esNext"
    ],
    "module": "commonjs",
    "moduleResolution": "node",
    "outDir": "./dist",
    "sourceMap": true,
    "target": "es5"
  },
  "exclude": [
    "node_modules",
    "dist"
  ]
}
然后在项目中安装以下依赖:
npm install arrow --save
npm install @types/node --save-dev
最后,在你的TypeScript文件中添加以下import语句:
import arrow from 'arrow'
现在,你就可以在TypeScript项目中使用apache-arrow了!
                    上一篇:Apache-airflowSnowflakeOperator教程示例无法运行。
                
下一篇:apache-artemis 2.13.0 - 为什么Broker出现AM1212037连接失败和AMQ214013无法解码数据包的问题。