Answer the question
In order to leave comments, you need to log in
Why is typescript behaving so strangely?
I'm trying to make friends here ts and node.js, but I ran into two problems:
1) I can not connect the module.
Main.ts and redisApi.ts are in the same folder. In redisApi.ts I wrote a class:
class RedisApi {
constructor() {
}
someMethod() {
}
}
module.exports = RedisApi;
import RedisApi = require('./redisApi');
const redisApi = new RedisApi(redisClient, ['one', 'two', 'three', 'four']);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question