-
Notifications
You must be signed in to change notification settings - Fork 1
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
Migrate codebase to typescript #57
Conversation
TODO: need to update usage of Redux with Toolkit
@@ -4,6 +4,10 @@ | |||
"license": "MPL-2.0", | |||
"homepage": ".", | |||
"private": true, | |||
"engines": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I already tried to add this when I arrived long time ago but apparently we should not, so I think you can remove this part
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why? I'm interested of the reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly I don't know, I don't remember.
Cf these PR never merged :
gridsuite/gridstudy-app#814
gridsuite/gridstudy-app#766
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explanation : powsybl/powsybl-network-viewer#29 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can discuss about it, but for a lot of them you define types that don't bring any value. Using typescript, you must first let it infer what it can infer especially for function return types, then add specific types when it brings value and readability to our code. It is a bad practice to use types of types that comes for other libs with a lot of templating and all, we must define types that make sense for us and for our code, and it's compiler role to make sure that our defined types match to the signature of functions we call.
4e22d6e
to
6f03f01
Compare
Co-authored-by: Joris Mancini <[email protected]> Signed-off-by: Tristan Chuine <[email protected]>
6f03f01
to
1055744
Compare
24fa8b2
to
83ca55e
Compare
No description provided.