06/20/2018, 4:33 PM
This is a slightly unfortunate TypeScript thing. The best way to avoid this is to remove the
"declaration": true
line from
. We plan to remove this from all examples and templates to avoid this.
FWIW - That line in tsconfig.json tells TypeScript to try to generate a
file as part of the output. This is important for reusable libraries, but not needed for application code.
TypeScript has some strict rules when it generates a
file about being able to unambiguosly name any types that appear on the public API.