Skip to content

Anti-pattern: (JS-0323) Detected usage of the any type #2030

Open
@malek10xdev

Description

@malek10xdev

Description

The any type can sometimes leak into your codebase. TypeScript compiler skips the type checking of the any typed variables, so it creates a potential safety hole, and source of bugs in your codebase. We recommend using unknown or never type variable.

Occurrences

export function validateType(key: string, value: any, type: string) {

getCache.mockResolvedValue([{} as any]);

Guidelines

Reference the issue in your PR description, to close it automatically when your PR is merged

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions