You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to resolve signature of method decorator when called as an expression.
The runtime will invoke the decorator with 2 arguments, but the decorator expects 3. ts(1241)
index.d.ts(109, 183): An argument for 'descriptor' was not provided.
If we were to support both, testing them would be an issue:
either run a second test file with --experimentalDecorators enabled
or "manually polyfill" the previous version in the class constructor, rather than calling it as an actual decorator
Dropping support for the old one might be troublesome for people who are using --emitDecoratorMetadata, but I think it's not the end of the world, they can stay on memoize@10. I propose just dropping support.
The example from the docs:
returns the following error in TypeScript 5:
The cause of this issue, I assume, is that the library only supports the stage 2 implementation of decorators. TypeScript 5 supports stage 3 decorator implementation without
--experimentalDecorators
, see https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#decorators.The text was updated successfully, but these errors were encountered: