microsoft / microsoft/reflect-metadata
Module augmentation cannot introduce new names in the top level scope
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.4k
- Forks
- 190
- Avg merge
- 13h 52m
- Merged PRs (30d)
- 1
Description
I have a Typescript compiler error coming from reflect-metadata's index.d.ts
"Module augmentation cannot introduce new names in the top level scope"

I am using version 0.1.10 and Typescript 1.8.7. I'm not in a position to upgrade Typescript yet, but I'm confused because I'm sure I never had this problem before with the same versions.
Can you think of anything else that could affect this?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with reflect-metadata's index.d.ts and reproduce the error using TypeScript 1.8.7 and reflect-metadata 0.1.10. Compare the declaration with the module-augmentation rules for that compiler version and determine what changed from the previously working setup; done means identifying a confirmed cause and a compatible correction or workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100