Skip to content

Commit d26135f

Browse files
committed
fix(multiple): update material api goldens
1 parent 8022331 commit d26135f

File tree

5 files changed

+38
-25
lines changed

5 files changed

+38
-25
lines changed

Diff for: goldens/material/snack-bar/index.api.md

+17-12
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ import { TemplateRef } from '@angular/core';
3232
import { 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 @deprecated
4141
export function MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY(): MatSnackBarConfig;
@@ -48,10 +48,10 @@ export class MatSnackBar implements OnDestroy {
4848
// (undocumented)
4949
ngOnDestroy(): void;
5050
open(message: string, action?: string, config?: MatSnackBarConfig): MatSnackBarRef<TextOnlySnackBar>;
51-
get _openedSnackBarRef(): MatSnackBarRef<any> | null;
52-
set _openedSnackBarRef(value: MatSnackBarRef<any> | null);
53-
openFromComponent<T, D = any>(component: ComponentType<T>, config?: MatSnackBarConfig<D>): MatSnackBarRef<T>;
54-
openFromTemplate(template: TemplateRef<any>, config?: MatSnackBarConfig): MatSnackBarRef<EmbeddedViewRef<any>>;
51+
get _openedSnackBarRef(): MatSnackBarRef<unknown> | null;
52+
set _openedSnackBarRef(value: MatSnackBarRef<unknown> | null);
53+
openFromComponent<T, D = unknown>(component: ComponentType<T>, config?: MatSnackBarConfig<D>): MatSnackBarRef<T>;
54+
openFromTemplate(template: TemplateRef<unknown>, config?: MatSnackBarConfig): MatSnackBarRef<EmbeddedViewRef<unknown>>;
5555
simpleSnackBarComponent: typeof SimpleSnackBar;
5656
snackBarContainerComponent: typeof MatSnackBarContainer;
5757
// (undocumented)
@@ -82,7 +82,7 @@ export const matSnackBarAnimations: {
8282
};
8383

8484
// @public
85-
export class MatSnackBarConfig<D = any> {
85+
export class MatSnackBarConfig<D = unknown> {
8686
announcementMessage?: string;
8787
data?: D | null;
8888
direction?: Direction;
@@ -174,7 +174,7 @@ export class SimpleSnackBar implements TextOnlySnackBar {
174174
constructor(...args: unknown[]);
175175
action(): void;
176176
// (undocumented)
177-
data: any;
177+
data: TextOnlySnackBarData;
178178
get hasAction(): boolean;
179179
// (undocumented)
180180
snackBarRef: MatSnackBarRef<SimpleSnackBar>;
@@ -189,16 +189,21 @@ export interface TextOnlySnackBar {
189189
// (undocumented)
190190
action: () => void;
191191
// (undocumented)
192-
data: {
193-
message: string;
194-
action: string;
195-
};
192+
data: TextOnlySnackBarData;
196193
// (undocumented)
197194
hasAction: boolean;
198195
// (undocumented)
199196
snackBarRef: MatSnackBarRef<TextOnlySnackBar>;
200197
}
201198

199+
// @public
200+
export interface TextOnlySnackBarData {
201+
// (undocumented)
202+
action: string;
203+
// (undocumented)
204+
message: string;
205+
}
206+
202207
// (No @packageDocumentation comment for this package)
203208

204209
```

Diff for: goldens/material/stepper/index.api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class MatStep extends CdkStep implements ErrorStateMatcher, AfterContentI
6464
export class MatStepContent {
6565
constructor(...args: unknown[]);
6666
// (undocumented)
67-
_template: TemplateRef<any>;
67+
_template: TemplateRef<unknown>;
6868
// (undocumented)
6969
static ɵdir: i0.ɵɵDirectiveDeclaration<MatStepContent, "ng-template[matStepContent]", never, {}, {}, never, never, true, never>;
7070
// (undocumented)

Diff for: goldens/material/tabs/index.api.md

+15-7
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ export const _MAT_INK_BAR_POSITIONER: InjectionToken<_MatInkBarPositioner>;
3535
export function _MAT_INK_BAR_POSITIONER_FACTORY(): _MatInkBarPositioner;
3636

3737
// @public
38-
export const MAT_TAB: InjectionToken<any>;
38+
export const MAT_TAB: InjectionToken<MatTabBase>;
3939

4040
// @public
4141
export const MAT_TAB_CONTENT: InjectionToken<MatTabContent>;
4242

4343
// @public
44-
export const MAT_TAB_GROUP: InjectionToken<any>;
44+
export const MAT_TAB_GROUP: InjectionToken<MatTabGroupBase>;
4545

4646
// @public
4747
export const MAT_TAB_LABEL: InjectionToken<MatTabLabel>;
@@ -143,16 +143,16 @@ export abstract class MatPaginatedTabHeader implements AfterContentChecked, Afte
143143
}
144144

145145
// @public (undocumented)
146-
export class MatTab implements OnInit, OnChanges, OnDestroy {
146+
export class MatTab implements MatTabBase, OnInit, OnChanges, OnDestroy {
147147
constructor(...args: unknown[]);
148148
ariaLabel: string;
149149
ariaLabelledby: string;
150150
bodyClass: string | string[];
151151
// (undocumented)
152-
_closestTabGroup: any;
152+
_closestTabGroup: MatTabGroupBase | null;
153153
get content(): TemplatePortal | null;
154154
disabled: boolean;
155-
_implicitContent: TemplateRef<any>;
155+
_implicitContent?: TemplateRef<unknown>;
156156
isActive: boolean;
157157
labelClass: string | string[];
158158
// (undocumented)
@@ -175,6 +175,10 @@ export class MatTab implements OnInit, OnChanges, OnDestroy {
175175
static ɵfac: i0.ɵɵFactoryDeclaration<MatTab, never>;
176176
}
177177

178+
// @public
179+
export interface MatTabBase {
180+
}
181+
178182
// @public
179183
export class MatTabBody implements OnInit, OnDestroy {
180184
constructor(...args: unknown[]);
@@ -230,7 +234,7 @@ export class MatTabChangeEvent {
230234
export class MatTabContent {
231235
constructor(...args: unknown[]);
232236
// (undocumented)
233-
template: TemplateRef<any>;
237+
template: TemplateRef<unknown>;
234238
// (undocumented)
235239
static ɵdir: i0.ɵɵDirectiveDeclaration<MatTabContent, "[matTabContent]", never, {}, {}, never, never, true, never>;
236240
// (undocumented)
@@ -320,6 +324,10 @@ export class MatTabGroup implements AfterViewInit, AfterContentInit, AfterConten
320324
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabGroup, never>;
321325
}
322326

327+
// @public
328+
export interface MatTabGroupBase {
329+
}
330+
323331
// @public
324332
export interface MatTabGroupBaseHeader {
325333
// (undocumented)
@@ -367,7 +375,7 @@ export type MatTabHeaderPosition = 'above' | 'below';
367375
// @public
368376
export class MatTabLabel extends CdkPortal {
369377
// (undocumented)
370-
_closestTab: any;
378+
_closestTab: MatTabBase | null;
371379
// (undocumented)
372380
static ɵdir: i0.ɵɵDirectiveDeclaration<MatTabLabel, "[mat-tab-label], [matTabLabel]", never, {}, {}, never, never, true, never>;
373381
// (undocumented)

Diff for: goldens/material/timepicker/index.api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ export class MatTimepickerInput<D> implements ControlValueAccessor, Validator, O
9494
readonly min: InputSignalWithTransform<D | null, unknown>;
9595
// (undocumented)
9696
ngOnDestroy(): void;
97-
registerOnChange(fn: (value: any) => void): void;
97+
registerOnChange(fn: (value: unknown) => void): void;
9898
registerOnTouched(fn: () => void): void;
9999
registerOnValidatorChange(fn: () => void): void;
100100
setDisabledState(isDisabled: boolean): void;
101101
readonly timepicker: InputSignal<MatTimepicker<D>>;
102102
validate(control: AbstractControl): ValidationErrors | null;
103103
readonly value: ModelSignal<D | null>;
104-
writeValue(value: any): void;
104+
writeValue(value: unknown): void;
105105
// (undocumented)
106106
static ɵdir: i0.ɵɵDirectiveDeclaration<MatTimepickerInput<any>, "input[matTimepicker]", ["matTimepickerInput"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "timepicker": { "alias": "matTimepicker"; "required": true; "isSignal": true; }; "min": { "alias": "matTimepickerMin"; "required": false; "isSignal": true; }; "max": { "alias": "matTimepickerMax"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
107107
// (undocumented)

Diff for: goldens/material/tooltip/index.api.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ export class MatTooltip implements OnDestroy, AfterViewInit {
8888
y: number;
8989
}): void;
9090
get tooltipClass(): string | string[] | Set<string> | {
91-
[key: string]: any;
91+
[key: string]: unknown;
9292
};
9393
set tooltipClass(value: string | string[] | Set<string> | {
94-
[key: string]: any;
94+
[key: string]: unknown;
9595
});
9696
// (undocumented)
9797
_tooltipInstance: TooltipComponent | null;
@@ -160,7 +160,7 @@ export class TooltipComponent implements OnDestroy {
160160
show(delay: number): void;
161161
_tooltip: ElementRef<HTMLElement>;
162162
tooltipClass: string | string[] | Set<string> | {
163-
[key: string]: any;
163+
[key: string]: unknown;
164164
};
165165
_triggerElement: HTMLElement;
166166
// (undocumented)

0 commit comments

Comments
 (0)