Skip to content
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

store: use return type over a type cast #4770

Merged
merged 1 commit into from
Jul 31, 2023
Merged

store: use return type over a type cast #4770

merged 1 commit into from
Jul 31, 2023

Conversation

brunnre8
Copy link
Member

Not sure about idiomatic TS, but I'm fairly sure type casts should be avoided wherever possible.

In this case the compiler is still smart enough to catch mistakes both ways, but normally type casts can prevent the compiler from flagging type mismatches as errors so let's not do them.

@MaxLeiter MaxLeiter merged commit 9f05a75 into master Jul 31, 2023
10 checks passed
@MaxLeiter MaxLeiter deleted the smallTScleanup branch July 31, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants