diff --git a/projects/demo/src/modules/app/metrika/metrika.service.ts b/projects/demo/src/modules/app/metrika/metrika.service.ts index 574a1998b23f..747e35d615e6 100644 --- a/projects/demo/src/modules/app/metrika/metrika.service.ts +++ b/projects/demo/src/modules/app/metrika/metrika.service.ts @@ -1,5 +1,6 @@ import {DOCUMENT, isPlatformBrowser} from '@angular/common'; import {inject, Injectable, PLATFORM_ID} from '@angular/core'; +import type {Params} from '@angular/router'; import {TUI_IS_E2E, tuiCreateOptions} from '@taiga-ui/cdk'; declare global { @@ -15,8 +16,8 @@ declare global { interface HitOptions { referer?: string; - params?: any; - title?: any; + params?: Params; + title?: string; } interface YaMetrikaOptions { diff --git a/projects/demo/src/modules/components/abstract/control.ts b/projects/demo/src/modules/components/abstract/control.ts index 52e0c71ea78b..e28748a038b4 100644 --- a/projects/demo/src/modules/components/abstract/control.ts +++ b/projects/demo/src/modules/components/abstract/control.ts @@ -63,7 +63,7 @@ export abstract class AbstractExampleTuiControl public inputMode = this.inputModeVariants[0]!; - public maxLength: any = null; + public maxLength: unknown = null; public type = this.typeVariants[0]!; diff --git a/projects/demo/src/modules/components/radio/examples/2/index.ts b/projects/demo/src/modules/components/radio/examples/2/index.ts index 9728c92a2c01..3bfa041aa12d 100644 --- a/projects/demo/src/modules/components/radio/examples/2/index.ts +++ b/projects/demo/src/modules/components/radio/examples/2/index.ts @@ -2,18 +2,22 @@ import {Component} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiPlatform} from '@taiga-ui/cdk'; import {TuiButton, TuiLabel} from '@taiga-ui/core'; import {TuiRadio} from '@taiga-ui/kit'; +interface TestValue { + test: string; +} + @Component({ standalone: true, - imports: [FormsModule, TuiButton, TuiLabel, TuiPlatform, TuiRadio], + imports: [FormsModule, TuiButton, TuiLabel, TuiRadio], templateUrl: './index.html', encapsulation, changeDetection, }) export default class Example { - protected value: any = null; - protected identityMatcher = (a: any, b: any): boolean => a?.test === b?.test; + protected value: TestValue | null = null; + protected identityMatcher = (a: TestValue, b: TestValue): boolean => + a?.test === b?.test; } diff --git a/projects/demo/src/utils/component.pipe.ts b/projects/demo/src/utils/component.pipe.ts index b5999a0eca96..d8133ea80605 100644 --- a/projects/demo/src/utils/component.pipe.ts +++ b/projects/demo/src/utils/component.pipe.ts @@ -11,7 +11,7 @@ import {toKebab} from './kebab.pipe'; export class TuiComponentPipe implements PipeTransform { private readonly page = inject(TuiDocPage); - public async transform(index: number): Promise<{readonly default: any}> { + public async transform(index: number): Promise<{readonly default: unknown}> { return import( `../modules/${this.page.type}/${toKebab(this.page.header)}/examples/${index}/index.ts` );