-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fixkeystypes] Improve keys typing (#321)
## Summary: I found that the typing was not helpful so I added a test case for the issue I experienced and then tweaked the function definition so that all the flow tests passed. No functional change here, purely types. Issue: FEI-4655 ## Test plan: `yarn flow` Author: somewhatabstract Reviewers: jeresig, benchristel, somewhatabstract Required Reviewers: Approved By: jeresig Checks: ✅ Test (macOS-latest, 16.x), ✅ codecov/project, ✅ CodeQL, ✅ Lint, flow, and coverage check (ubuntu-latest, 16.x), ✅ Prime node_modules cache for primary configuration (ubuntu-latest, 16.x), ✅ gerald, ✅ Analyze (javascript), ⏭ dependabot Pull Request URL: #321
- Loading branch information
1 parent
99abd47
commit 1ec0968
Showing
3 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@khanacademy/wonder-stuff-core": patch | ||
--- | ||
|
||
Update types for `keys` so that it works with a wider variety of object shapes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters