typescript - Duplicate Identifier in duplicate module -


i have 2 files contain same module in solution (different projects).

module mymodule{     export function dostuff(){} // in here "dostuff" getting redlined } 

this error because have 2 files same piece of code in it. seeing don't reference each other or matter, don't see how can conflict.

if using visual studio, treats files implicitly references typescript files.

therefore, if thinks both modules have same common root, think 1 extension of other , try warn duplicate declarations.

although argue aren't same module, worth drawing inspiration framework class libraries, rely on namespaces alone distinguish between 2 classes, example both of following have been called command, have been distinguished class name namespace:

  • system.data.sqlclient.sqlcommand
  • system.data.oracleclient.oraclecommand

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -