@@ -32,10 +32,10 @@ import { TemplateRef } from '@angular/core';
3232import { ViewContainerRef } from ' @angular/core' ;
3333
3434// @public
35- export const MAT_SNACK_BAR_DATA: InjectionToken <any >;
35+ export const MAT_SNACK_BAR_DATA: InjectionToken <unknown >;
3636
3737// @public
38- export const MAT_SNACK_BAR_DEFAULT_OPTIONS: InjectionToken <MatSnackBarConfig <any >>;
38+ export const MAT_SNACK_BAR_DEFAULT_OPTIONS: InjectionToken <MatSnackBarConfig <unknown >>;
3939
4040// @public
4141export class MatSnackBar implements OnDestroy {
@@ -45,10 +45,10 @@ export class MatSnackBar implements OnDestroy {
4545 // (undocumented)
4646 ngOnDestroy(): void ;
4747 open(message : string , action ? : string , config ? : MatSnackBarConfig ): MatSnackBarRef <TextOnlySnackBar >;
48- get _openedSnackBarRef(): MatSnackBarRef <any > | null ;
49- set _openedSnackBarRef(value : MatSnackBarRef <any > | null );
50- openFromComponent<T , D = any >(component : ComponentType <T >, config ? : MatSnackBarConfig <D >): MatSnackBarRef <T >;
51- openFromTemplate(template : TemplateRef <any >, config ? : MatSnackBarConfig ): MatSnackBarRef <EmbeddedViewRef <any >>;
48+ get _openedSnackBarRef(): MatSnackBarRef <unknown > | null ;
49+ set _openedSnackBarRef(value : MatSnackBarRef <unknown > | null );
50+ openFromComponent<T , D = unknown >(component : ComponentType <T >, config ? : MatSnackBarConfig <D >): MatSnackBarRef <T >;
51+ openFromTemplate< C = unknown > (template : TemplateRef <C >, config ? : MatSnackBarConfig ): MatSnackBarRef <EmbeddedViewRef <C >>;
5252 simpleSnackBarComponent: typeof SimpleSnackBar ;
5353 snackBarContainerComponent: typeof MatSnackBarContainer ;
5454 // (undocumented)
@@ -74,7 +74,7 @@ export class MatSnackBarActions {
7474}
7575
7676// @public
77- export class MatSnackBarConfig <D = any > {
77+ export class MatSnackBarConfig <D = unknown > {
7878 announcementMessage? : string ;
7979 data? : D | null ;
8080 direction? : Direction ;
@@ -168,7 +168,7 @@ export class SimpleSnackBar implements TextOnlySnackBar {
168168 constructor (... args : unknown []);
169169 action(): void ;
170170 // (undocumented)
171- data: any ;
171+ data: TextOnlySnackBarData ;
172172 get hasAction(): boolean ;
173173 // (undocumented)
174174 snackBarRef: MatSnackBarRef <SimpleSnackBar >;
@@ -183,16 +183,21 @@ export interface TextOnlySnackBar {
183183 // (undocumented)
184184 action: () => void ;
185185 // (undocumented)
186- data: {
187- message: string ;
188- action: string ;
189- };
186+ data: TextOnlySnackBarData ;
190187 // (undocumented)
191188 hasAction: boolean ;
192189 // (undocumented)
193190 snackBarRef: MatSnackBarRef <TextOnlySnackBar >;
194191}
195192
193+ // @public
194+ export interface TextOnlySnackBarData {
195+ // (undocumented)
196+ action: string ;
197+ // (undocumented)
198+ message: string ;
199+ }
200+
196201// (No @packageDocumentation comment for this package)
197202
198203```
0 commit comments