@@ -58,9 +58,8 @@ export class SelectionModel<T> {
58
58
* Selects a value or an array of values.
59
59
* @param values The values to select
60
60
* @return Whether the selection changed as a result of this call
61
- * @breaking -change 16.0.0 make return type boolean
62
61
*/
63
- select ( ...values : T [ ] ) : boolean | void {
62
+ select ( ...values : T [ ] ) : boolean {
64
63
this . _verifyValueAssignment ( values ) ;
65
64
values . forEach ( value => this . _markSelected ( value ) ) ;
66
65
const changed = this . _hasQueuedChanges ( ) ;
@@ -72,9 +71,8 @@ export class SelectionModel<T> {
72
71
* Deselects a value or an array of values.
73
72
* @param values The values to deselect
74
73
* @return Whether the selection changed as a result of this call
75
- * @breaking -change 16.0.0 make return type boolean
76
74
*/
77
- deselect ( ...values : T [ ] ) : boolean | void {
75
+ deselect ( ...values : T [ ] ) : boolean {
78
76
this . _verifyValueAssignment ( values ) ;
79
77
values . forEach ( value => this . _unmarkSelected ( value ) ) ;
80
78
const changed = this . _hasQueuedChanges ( ) ;
@@ -86,9 +84,8 @@ export class SelectionModel<T> {
86
84
* Sets the selected values
87
85
* @param values The new selected values
88
86
* @return Whether the selection changed as a result of this call
89
- * @breaking -change 16.0.0 make return type boolean
90
87
*/
91
- setSelection ( ...values : T [ ] ) : boolean | void {
88
+ setSelection ( ...values : T [ ] ) : boolean {
92
89
this . _verifyValueAssignment ( values ) ;
93
90
const oldValues = this . selected ;
94
91
const newSelectedSet = new Set ( values . map ( value => this . _getConcreteValue ( value ) ) ) ;
@@ -105,9 +102,8 @@ export class SelectionModel<T> {
105
102
* Toggles a value between selected and deselected.
106
103
* @param value The value to toggle
107
104
* @return Whether the selection changed as a result of this call
108
- * @breaking -change 16.0.0 make return type boolean
109
105
*/
110
- toggle ( value : T ) : boolean | void {
106
+ toggle ( value : T ) : boolean {
111
107
return this . isSelected ( value ) ? this . deselect ( value ) : this . select ( value ) ;
112
108
}
113
109
@@ -116,9 +112,8 @@ export class SelectionModel<T> {
116
112
* @param flushEvent Whether to flush the changes in an event.
117
113
* If false, the changes to the selection will be flushed along with the next event.
118
114
* @return Whether the selection changed as a result of this call
119
- * @breaking -change 16.0.0 make return type boolean
120
115
*/
121
- clear ( flushEvent = true ) : boolean | void {
116
+ clear ( flushEvent = true ) : boolean {
122
117
this . _unmarkAll ( ) ;
123
118
const changed = this . _hasQueuedChanges ( ) ;
124
119
if ( flushEvent ) {
0 commit comments