Skip to content

Commit 2656a03

Browse files
seth0027andrewseguin
authored andcommitted
docs(cdk/accordion): define string type for cdkaccordion property id (#24640)
Fixes a bug in accordion/api documentation in CdkAccordion where id property is not loosley defined. This is because id property is not explicitly defined as string. Fixes #24639 (cherry picked from commit 853d2cc)
1 parent 23e7b8e commit 2656a03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/accordion/accordion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class CdkAccordion implements OnDestroy, OnChanges {
3636
readonly _openCloseAllActions: Subject<boolean> = new Subject<boolean>();
3737

3838
/** A readonly id value to use for unique selection coordination. */
39-
readonly id = `cdk-accordion-${nextId++}`;
39+
readonly id: string = `cdk-accordion-${nextId++}`;
4040

4141
/** Whether the accordion should allow multiple expanded accordion items simultaneously. */
4242
@Input()

0 commit comments

Comments
 (0)