Skip to content

Commit 9cc7ffa

Browse files
committed
fix(material/stepper): Replace any with unknown
1 parent 7f71feb commit 9cc7ffa

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
@@ -1640,7 +1640,7 @@ describe('MatStepper', () => {
16401640

16411641
/** Asserts that keyboard interaction works correctly. */
16421642
function assertCorrectKeyboardInteraction(
1643-
fixture: ComponentFixture<any>,
1643+
fixture: ComponentFixture<unknown>,
16441644
stepHeaders: DebugElement[],
16451645
orientation: StepperOrientation,
16461646
) {
@@ -1741,7 +1741,7 @@ function assertCorrectKeyboardInteraction(
17411741

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

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

0 commit comments

Comments
 (0)