How to use Typescript in node function

How to use Typescript in node function

Hello, 

I'm trying to use Typescript 

How to make it works?



I'm facing this issue: 

TypeError: Cannot read properties of undefined (reading 'initialize')


For the following code: 
/// <reference types="node" />
'use strict';
import catalyst from "zcatalyst-sdk-node";
import axios from 'axios';

module.exports = async (req, res) => {

const catalystApp = catalyst.initialize(req);


I run tsc

Then catalyst run functions:index.js


With the following tsconfig.json

{
"compilerOptions": {
"target": "es5",
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "commonjs",
"moduleResolution": "node",
"resolveJsonModule": true,
"sourceMap": true,
"inlineSources": true
},
"include": [
"*/**/*.ts",
"../types"
],
"exclude": [
"node_modules",
"dist"
]
}