-
Notifications
You must be signed in to change notification settings - Fork 6
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
Vacms 15949 cleanup #243
Merged
Merged
Vacms 15949 cleanup #243
Conversation
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
tjheffner
reviewed
Nov 16, 2023
… of data. Mock data updated accordingly.
tjheffner
approved these changes
Nov 27, 2023
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.
thank you for tackling this cleanup, it reads much better! and will be much easier to extend in the future, thanks to the now clearly explicit drupal
/ formatted
type split
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Closes department-of-veterans-affairs/va.gov-cms#15949
This is a refactor. No functionality is changed.
Our TypeScript types needed some cleanup and normalization. This PR goes a long way toward accomplishing that. The cleanup uncovered a few silent issues with some types that are also resolved by this PR, but the bulk of the work boils down to implementing this model:
types/dataTypes/drupal
. Types for after formatting are intypes/dataTypes/formatted
.formatted
types.This model was already largely implemented, but it wasn't clean or explicit. Additionally, there were a number of places (and still might be a few) where "formatted" data types contained properties that were pre-formatted types. This sort of mixing is ripe for confusion at least, and, more than likely, bugs.
Another thing that is noteworthy is that this PR removes
index.d.ts
. That file held the bulk of the formatted type definitions, but naming it with the.d.ts
extension was not entirely correct. That extension is generally reserved for defining types for external libraries. Using it here led to some silent type mismatches. The result of the move, as mentioned above, uncovered these previously silent type problems, so this PR addresses those as well.Testing done/QA steps