Answer the question
In order to leave comments, you need to log in
.ts in .js webpack?
Hello.
It is necessary that it would simply translate files with the .ts extension into .js correctly, despite the fact that vanilla javascript is in .ts files.
It gives a bunch of errors and doesn’t translate, apparently swears at data types or something else
xs inside .ts files like this javascript:
export class Word {
constructor(englishWord = '', russianWord = '') {
this.wordElement = document.createElement('div');
this.wordElement.innerHTML = wordTemplate;
...
...
this.init();
}
init() {
this.wordElement.classList.add('word');
this.getValues();
this.initEvents();
....
....
}
}
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