Expected behavior: There's not any problem when using the Driver
Actual behavior: Driver.d.ts says Duplicated identifier Driver
Implementing the https://github.com/samchon/tgrid/issues/24, an ambiguous error has been occuring. There's not any error in the Driver.ts file, but its output file Driver.d.ts reports an error: Duplicated identifier Driver.
Such error occurs when a namespace, designed only for type definition, shares same name with a variable and some of type definitions in the namespace are exported and some of them are not expored. If all of the definitions in the namespace are exported, there wouldn't be any error.
Summary
Driver
Driver.d.ts
says Duplicated identifierDriver
Implementing the https://github.com/samchon/tgrid/issues/24, an ambiguous error has been occuring. There's not any error in the
Driver.ts
file, but its output fileDriver.d.ts
reports an error: Duplicated identifierDriver
.Such error occurs when a namespace, designed only for type definition, shares same name with a variable and some of type definitions in the namespace are exported and some of them are not expored. If all of the definitions in the namespace are exported, there wouldn't be any error.
It seems a bug of the TypeScript compiler. So I've published an issue reporting the bug: https://github.com/microsoft/TypeScript/issues/34896
Code occuring the bug
src/components/Driver.ts
components/Driver.d.ts