Skip to content

Commit e88e221

Browse files
committed
refactor(cdk/accordion): enforce stricter types for inputs
1 parent cb8de61 commit e88e221

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/cdk/accordion/accordion-item.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ export class CdkAccordionItem implements OnDestroy {
6060

6161
/** Whether the AccordionItem is expanded. */
6262
@Input()
63-
get expanded(): any { return this._expanded; }
64-
set expanded(expanded: any) {
63+
get expanded(): boolean { return this._expanded; }
64+
set expanded(expanded: boolean) {
6565
expanded = coerceBooleanProperty(expanded);
6666

6767
// Only emit events and update the internal value if the value changes.
@@ -90,9 +90,9 @@ export class CdkAccordionItem implements OnDestroy {
9090

9191
/** Whether the AccordionItem is disabled. */
9292
@Input()
93-
get disabled() { return this._disabled; }
94-
set disabled(disabled: any) { this._disabled = coerceBooleanProperty(disabled); }
95-
private _disabled: boolean = false;
93+
get disabled(): boolean { return this._disabled; }
94+
set disabled(disabled: boolean) { this._disabled = coerceBooleanProperty(disabled); }
95+
private _disabled = false;
9696

9797
/** Unregister function for _expansionDispatcher. */
9898
private _removeUniqueSelectionListener: () => void = () => {};

0 commit comments

Comments
 (0)