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

Types: Add legacy action types #1873

Merged
merged 1 commit into from
Jan 30, 2020
Merged

Conversation

dmsnell
Copy link
Member

@dmsnell dmsnell commented Jan 30, 2020

When @belcherj asked about creating types for the existing actions in
app-state I was reluctant since we want to get rid of them but then in
considering his view I think it's the right decision until they are all gone;
so I have created the types here.

These are organized as one big LegacyAction type that isn't exported. This
provides auto-completion and type-checking while still hiding the types
somewhat. They are at the end of action-types.ts so that we can mostly ignore
them. As we remove functionality from app-state we should remove the
corresponding legacy action types.

Testing

There are only type changes in this PR and no code changes. The output code
should be identical and therefore no testing is needed beyond the smoke-testing
provided by our CI runners: if the app builds and runs it should be safe.

When @belcherj asked about creating types for the existing actions in
`app-state` I was reluctant since we want to get rid of them but then in
considering his view I think it's the right decision until they are all gone;
so I have created the types here.

These are organized as one big `LegacyAction` type that isn't exported. This
provides auto-completion and type-checking while still hiding the types
somewhat. They are at the end of `action-types.ts` so that we can mostly ignore
them. As we remove functionality from `app-state` we should remove the
corresponding legacy action types.
@dmsnell dmsnell requested a review from a team January 30, 2020 00:00
Copy link
Contributor

@belcherj belcherj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge it

@dmsnell dmsnell merged commit 82016dc into develop Jan 30, 2020
@dmsnell dmsnell deleted the types/add-legacy-action-types branch January 30, 2020 02:15
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.

2 participants