Skip to content

Commit ef8cff8

Browse files
committed
refactor(material/chips): set generic for the MAT_CHIP token
cleanup related to angular/angular/pull/47461
1 parent 59e7973 commit ef8cff8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/material/chips/chip-action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class MatChipContent {
4141
_handlePrimaryActionInteraction(): void;
4242
remove(): void;
4343
disabled: boolean;
44-
_edit(): void;
44+
_edit(event: Event): void;
4545
_isEditing?: boolean;
4646
}>(MAT_CHIP);
4747

src/material/chips/tokens.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import {ENTER, ModifierKey} from '@angular/cdk/keycodes';
1010
import {InjectionToken} from '@angular/core';
11+
import type {MatChip} from './chip';
1112

1213
/** Key that can be used as a separator between chips. */
1314
export interface SeparatorKey {
@@ -69,4 +70,4 @@ export const MAT_CHIP_REMOVE = new InjectionToken('MatChipRemove');
6970
/**
7071
* Injection token used to avoid a circular dependency between the `MatChip` and `MatChipAction`.
7172
*/
72-
export const MAT_CHIP = new InjectionToken('MatChip');
73+
export const MAT_CHIP = new InjectionToken<MatChip>('MatChip');

0 commit comments

Comments
 (0)