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

[Merged by Bors] - fix: make byKey port partial, to have better ts typecheck (VF-3527) #290

Closed
wants to merge 1 commit into from

Conversation

viniciusdacal
Copy link
Contributor

Fixes or implements VF-3527

Brief description. What is this change?

Currently Ts is not complaining in the case ({} as Record<string, BasePort>).id.something and ideally it should, since we will not be sure if the port is present for a given key or not.

@viniciusdacal viniciusdacal requested a review from z4o4z May 27, 2022 12:54
@viniciusdacal viniciusdacal self-assigned this May 27, 2022
@viniciusdacal viniciusdacal marked this pull request as ready for review May 27, 2022 12:54
@viniciusdacal
Copy link
Contributor Author

bors r+

bors-vf bot pushed a commit that referenced this pull request May 27, 2022
…290)

<!-- You can erase any parts of this template not applicable to your Pull Request. -->

**Fixes or implements VF-3527**

### Brief description. What is this change?

Currently Ts is not complaining in the case `({} as Record<string, BasePort>).id.something` and ideally it should, since we will not be sure if the port is present for a given key or not.
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bors-vf
Copy link

bors-vf bot commented May 27, 2022

Pull request successfully merged into master.

Build succeeded:

@bors-vf bors-vf bot changed the title fix: make byKey port partial, to have better ts typecheck (VF-3527) [Merged by Bors] - fix: make byKey port partial, to have better ts typecheck (VF-3527) May 27, 2022
@bors-vf bors-vf bot closed this May 27, 2022
@bors-vf bors-vf bot deleted the vinicius/bykey-ports/VF-3527 branch May 27, 2022 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants