Skip to content

Commit 0b1c233

Browse files
committed
fix(material/stepper): Replace any with unknown
1 parent 20bf6f7 commit 0b1c233

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/material/stepper/step-content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {Directive, TemplateRef, inject} from '@angular/core';
1515
selector: 'ng-template[matStepContent]',
1616
})
1717
export class MatStepContent {
18-
_template = inject<TemplateRef<any>>(TemplateRef);
18+
_template = inject<TemplateRef<unknown>>(TemplateRef);
1919

2020
constructor(...args: unknown[]);
2121
constructor() {}

src/material/stepper/stepper.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,7 +1641,7 @@ describe('MatStepper', () => {
16411641

16421642
/** Asserts that keyboard interaction works correctly. */
16431643
function assertCorrectKeyboardInteraction(
1644-
fixture: ComponentFixture<any>,
1644+
fixture: ComponentFixture<unknown>,
16451645
stepHeaders: DebugElement[],
16461646
orientation: StepperOrientation,
16471647
) {
@@ -1742,7 +1742,7 @@ function assertCorrectKeyboardInteraction(
17421742

17431743
/** Asserts that arrow key direction works correctly in RTL mode. */
17441744
function assertArrowKeyInteractionInRtl(
1745-
fixture: ComponentFixture<any>,
1745+
fixture: ComponentFixture<unknown>,
17461746
stepHeaders: DebugElement[],
17471747
) {
17481748
const stepperComponent = fixture.debugElement.query(By.directive(MatStepper))!.componentInstance;
@@ -1764,7 +1764,7 @@ function assertArrowKeyInteractionInRtl(
17641764

17651765
/** Asserts that keyboard interaction works correctly when the user is pressing a modifier key. */
17661766
function assertSelectKeyWithModifierInteraction(
1767-
fixture: ComponentFixture<any>,
1767+
fixture: ComponentFixture<unknown>,
17681768
stepHeaders: DebugElement[],
17691769
orientation: StepperOrientation,
17701770
selectionKey: number,
@@ -1823,7 +1823,7 @@ function asyncValidator(minLength: number, validationTrigger: Subject<void>): As
18231823
function createComponent<T>(
18241824
component: Type<T>,
18251825
providers: Provider[] = [],
1826-
imports: any[] = [],
1826+
imports: unknown[] = [],
18271827
encapsulation?: ViewEncapsulation,
18281828
declarations = [component],
18291829
): ComponentFixture<T> {

0 commit comments

Comments
 (0)