@@ -227,15 +227,15 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
227227 this . _id = value ;
228228 this . stateChanges . next ( ) ;
229229 }
230- get id ( ) { return this . _id || this . _uid ; }
230+ get id ( ) : string { return this . _id || this . _uid ; }
231231
232232 /** Required for FormFieldControl. Whether the chip list is required. */
233233 @Input ( )
234- set required ( value : any ) {
234+ set required ( value : boolean ) {
235235 this . _required = coerceBooleanProperty ( value ) ;
236236 this . stateChanges . next ( ) ;
237237 }
238- get required ( ) {
238+ get required ( ) : boolean {
239239 return this . _required ;
240240 }
241241
@@ -245,7 +245,7 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
245245 this . _placeholder = value ;
246246 this . stateChanges . next ( ) ;
247247 }
248- get placeholder ( ) {
248+ get placeholder ( ) : string {
249249 return this . _chipInput ? this . _chipInput . placeholder : this . _placeholder ;
250250 }
251251
@@ -260,6 +260,7 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
260260 return ( ! this . _chipInput || this . _chipInput . empty ) && this . chips . length === 0 ;
261261 }
262262
263+ /** @docs -private */
263264 get shouldLabelFloat ( ) : boolean {
264265 return ! this . empty || this . focused ;
265266 }
@@ -315,7 +316,7 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
315316 * to facilitate the two-way binding for the `value` input.
316317 * @docs -private
317318 */
318- @Output ( ) valueChange = new EventEmitter < any > ( ) ;
319+ @Output ( ) valueChange : EventEmitter < any > = new EventEmitter < any > ( ) ;
319320
320321 /** The chip components contained within this chip list. */
321322 @ContentChildren ( MatChip ) chips : QueryList < MatChip > ;
@@ -389,7 +390,10 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
389390 this . _chipInput = inputElement ;
390391 }
391392
392- // Implemented as part of MatFormFieldControl.
393+ /**
394+ * Implemented as part of MatFormFieldControl.
395+ * @docs -private
396+ */
393397 setDescribedByIds ( ids : string [ ] ) { this . _ariaDescribedby = ids . join ( ' ' ) ; }
394398
395399 // Implemented as part of ControlValueAccessor
@@ -416,6 +420,7 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
416420 this . stateChanges . next ( ) ;
417421 }
418422
423+ /** @docs -private */
419424 onContainerClick ( ) {
420425 this . focus ( ) ;
421426 }
@@ -424,7 +429,7 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
424429 * Focuses the the first non-disabled chip in this chip list, or the associated input when there
425430 * are no eligible chips.
426431 */
427- focus ( ) {
432+ focus ( ) : void {
428433 // TODO: ARIA says this should focus the first `selected` chip if any are selected.
429434 // Focus on first element if there's no chipInput inside chip-list
430435 if ( this . _chipInput && this . _chipInput . focused ) {
0 commit comments