chore: Rename message's StateHandlers
to MessageStateHandlers
#1062
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.
In #882 the
StateHandlers
type was changed so that it was incompatible with the otherStateHandlers
type, resulting in conflicts when Typescript merged the two. This caused problems where it was impossible to correctly typeStateHandlers
(see #1057).This PR is a breaking change that simply renames the message
StateHandlers
interface toMessageStateHandlers
, and therefore fixes #1057.Probably the better fix would be to introduce a breaking change that makes both types the same again - but I didn't want to get in to untangling what is supposed to happen.
This must not be squash merged, otherwise you won't get the breaking change in the changelog.
npm run dist
works locally (this will run tests, lint and build)