Skip to content

Commit c8748b0

Browse files
committed
fix(material/snackbar): update generic types for openFromComponent
1 parent e3f8a48 commit c8748b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/public_api_guard/material/snack-bar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export abstract class _MatSnackBarBase implements OnDestroy {
7878
open(message: string, action?: string, config?: MatSnackBarConfig): MatSnackBarRef<TextOnlySnackBar>;
7979
get _openedSnackBarRef(): MatSnackBarRef<any> | null;
8080
set _openedSnackBarRef(value: MatSnackBarRef<any> | null);
81-
openFromComponent<T>(component: ComponentType<T>, config?: MatSnackBarConfig): MatSnackBarRef<T>;
81+
openFromComponent<T, D = any>(component: ComponentType<T>, config?: MatSnackBarConfig<D>): MatSnackBarRef<T>;
8282
openFromTemplate(template: TemplateRef<any>, config?: MatSnackBarConfig): MatSnackBarRef<EmbeddedViewRef<any>>;
8383
protected abstract simpleSnackBarComponent: Type<TextOnlySnackBar>;
8484
protected abstract snackBarContainerComponent: Type<_SnackBarContainer>;

0 commit comments

Comments
 (0)