Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Make Spring setters consistently return this#51

Open
bfrengley wants to merge 1 commit intofacebookarchive:masterfrom
bfrengley:spring-return-types
Open

Make Spring setters consistently return this#51
bfrengley wants to merge 1 commit intofacebookarchive:masterfrom
bfrengley:spring-return-types

Conversation

@bfrengley
Copy link

Currently, all setters in a Spring return this, other than Spring#setRestDisplacementThreshold which returns undefined. This disallows it from being chained with other setters.

Additionally, Spring#setSpringConfig and Spring#setCurrentValue both return this but are not typed as such.

This pull request resolves both of these issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant