javascript - error in compiled .ts with tsc compiler in visual studio code -
there duplicate identifier error in .js tsc compiled code in vs code here .ts file i'm using vs code 0.5 , typescript 1.5.3,there error in line exports.user = user
, complaining duplicate:
import store = require("store/mongo") export class user { public connectionid: string; public telegram_user: telegram.user; addtopooldb(next): void { store.addtopooldb(this, function(err) { next(err); }); } }
and output :
var store = require("store/mongo"); var user = (function () { function user() { } user.prototype.addtopooldb = function (next) { store.addtopooldb(this, function (err) { next(err); }); }; return user; })(); exports.user = user;
Comments
Post a Comment