-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overload signatures must all be ambient or non-ambient. #61
Comments
+1 |
Hi @masonk, Have you managed to find a solution after all? |
+1 |
core-js has adopted their own implementation of this. I'm still working on the project, though its been low on my priority list as of late. |
@masonk, I think the issue is the following line in your tsconfig.json:
Setting |
I found this error with export declare function or this example
|
For my case it was a function called "print"! |
On TS 2.1.4, when I import json-typescript-mapper": "^1.1.1", which depends on reflect-metadata,
I get many errors similar to this one:
This is the same as issue #37, which is closed.
It happens for targets es3, es5, and es6.
It happens for the lowest supported version of reflect-metadata (0.1.3) and the most recent version (0.1.10).
I am not using Angular. This is basically a brand new project, with json-typescript-mapper and its reflect-metadata as the only deps.
I think the issue is that you've defined the es7 parts of Reflect as TypeScript, but there are already ambients for the es6 parts of Reflect in the core lib. One solution (which I haven't yet tried, but will soon), is to compile Reflect to .js and emit the types into .d.ts, where I hope they will merge with the core lib types.
Are you working on this project any more, or did it somehow get folded into core-js?
PS: Thanks for doing this. This is a neat proposal and I hope it makes it into es7.
The text was updated successfully, but these errors were encountered: