Closed stefanrmeier closed 7 years ago
Hey - thanks for the bug report. From what I can tell, this looks like an issue specific to TypeScript 2.4.x. I'll dig into this more.
Also, I'll leave myself a note to set up a test matrix to build against multiple versions of TypeScript.
I made some changes that may have fixed this in https://github.com/jiaweihli/monapt/commit/7a63ffef7d066f6d56e82307d4334ec384251085. It's in 1.0.4.
Can you take a look and see if that makes your compile errors go away?
Thanks! That was very quick. It compiles without any error now.
Glad to hear things are working - thanks for letting me know! 😄
I just upgraded from monapt 0.7 to 1.0.1 and got the following error when I compile my project:
It seems that the error comes from following declarations in the typedef:
some.d.ts
failure.d.ts
success.d.ts
When commenting out these lines, it compiles without error. After some research, it found this statement "[T]he root cause here is that you declared destination as protected. A protected method can only be implemented or overridden by a class that inherits (through extends, not implements) the class which first declared the method." (source. Probably the same is true for private variables.