-
Notifications
You must be signed in to change notification settings - Fork 150
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
Maintenance: test repo & packages with TypeScript 5.x #1375
Comments
After some initial research, it appears that the signature/type of how decorators are defined in TS has changed with the new version. This is unfortunate but also not surprising since decorators as a feature in TypeScript/JavaScript are still experimental. Prior to TS5.0, the signature was this: type MethodDecorator = <T>(
target: Object,
propertyKey: string | symbol,
descriptor: TypedPropertyDescriptor<T>
) => TypedPropertyDescriptor<T> | void; Now, with TS5.0, the signature looks like this: type ClassMethodDecorator = (
value: Function,
context: {
kind: "method";
name: string | symbol;
access: { get(): unknown };
static: boolean;
private: boolean;
addInitializer(initializer: () => void): void;
}
) => Function | void; The main differences that I can see will affect us are:
The next step should be to create a small PoC to validate the findings above. |
In #1667 we have revisited and simplified the In order to avoid breaking changes there are two areas that we have purposefully left out:
As part of this issue, which is in the v2 planning, we should also consider enabling these settings. |
|
This is now released under v1.13.0 version! |
Summary
On March 16th TypeScript 5.0 was released. Among other things, the release has some changes related to decorators support.
We should invest some time to test the project with the new version, understand if there's any implication, and if any change is required.
Why is this needed?
We can expect customers will want to start using the new TS version and so we need to test compatibility.
Which area does this relate to?
Other
Solution
No response
Acknowledgment
Future readers
Please react with 👍 and your use case to help us understand customer demand.
The text was updated successfully, but these errors were encountered: