jquery - TypeScript duplicate function implementation issue -
i'm converting project few javascript files typescript files. of function names same (although implementations different) e.g.
function covariateblockenabledisable() {... exists in more 1 .js/.ts file. result "duplicate function implementation" error. rename functions unique there better solution?
i'm confused how using these files. reason getting error of files defined within same scope (possibly on window). there's no issue assuming don't use of files in same project, or using commonjs/amd. i'll go on both scenarios.
if 1 of files containing covariateblockenabledisable included in project, need compile them separately, or tsc flag -m commonjs.
if using commonjs/amd import these files/functions, want using tsc flag -m commonjs or -m amd.
if including files in project , not using commonjs/amd have issue anyway, since methods overwritten.
Comments
Post a Comment