Hi all,
Commenting a function inside an array emits duplicated comments after the ts is transpiled to js.
below is an example.
// TypeScript file
var testArrayWithFunc = [
// 関数
function() {
console.log();
},
// 文字列
'1',
// 数値
2
]
The transpiled js file is as below
// Transpiled JavaScript file
var testArrayWithFunc = [
// 関数
// 関数
function () {
console.log();
},
// 文字列
'1',
// 数値
2
];
The // 関数 part is emitted two times. It looks like it is emitted only if the target is a function.
I apologize not having enough time to narrow down the problem further and thanks in advance.
Hi all,
Commenting a function inside an array emits duplicated comments after the
tsis transpiled tojs.below is an example.
The transpiled
jsfile is as belowThe
// 関数part is emitted two times. It looks like it is emitted only if the target is a function.I apologize not having enough time to narrow down the problem further and thanks in advance.