Jay Phelps

Results 130 comments of Jay Phelps

One thing we could do, that I don't _like_ (but this situation sucks no matter what) is indeed convert core-decorators to TypeScript, release it and continue to maintain it as...

Just had another thought: I haven't looked into deeply yet, but it may be possible for us to detect which spec version is being used by the user simply by...

What compiler are you using?

What version of TypeScript? I need as much information as you can give me to help. Also keep in mind that core-decorators does not _officially_ support TypeScript--there are known issues...

@damianobarbati No updates from me, but others are welcome to dig in and find the cause. 🤕

@janjilek can you please provide reproducible example code?

AFAICT the issue is that TypeScript is not generating an initial descriptor that all our decorators expect is being provided. So what happens is, the descriptor ends up just looking...

This appears to be a known issue for property initializers only, they're choosing not to address at the moment: > NOTE  A Property Descriptor is not provided as an argument...

@reinert hmm not sure of the solution you're proposing but if it's easy enough could you submit a PR with tests?

It does indeed use .bind if it's available. Creating a truly universal autobind decorator is harder than one thinks. There are numerous edge cases that have been found over the...