File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ import {MAT_BOTTOM_SHEET_DATA} from '@angular/material/bottom-sheet';
45
45
template: ' passed in {{ data.names }}' ,
46
46
})
47
47
export class HobbitSheet {
48
- constructor (@Inject (MAT_BOTTOM_SHEET_DATA ) public data : any ) { }
48
+ constructor (@Inject (MAT_BOTTOM_SHEET_DATA ) public data : {names : string []} ) { }
49
49
}
50
50
```
51
51
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ import {MAT_DIALOG_DATA} from '@angular/material/dialog';
102
102
template: ' passed in {{ data.name }}' ,
103
103
})
104
104
export class YourDialog {
105
- constructor (@Inject (MAT_DIALOG_DATA ) public data : any ) { }
105
+ constructor (@Inject (MAT_DIALOG_DATA ) public data : {name : string } ) { }
106
106
}
107
107
```
108
108
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ import {MAT_SNACK_BAR_DATA} from '@angular/material/snack-bar';
69
69
template: ' passed in {{ data }}' ,
70
70
})
71
71
export class MessageArchivedComponent {
72
- constructor (@Inject (MAT_SNACK_BAR_DATA ) public data : any ) { }
72
+ constructor (@Inject (MAT_SNACK_BAR_DATA ) public data : string ) { }
73
73
}
74
74
```
75
75
You can’t perform that action at this time.
0 commit comments