Skip to content

ts-standard does not detect the use of any in TypeScript code #296

Description

@pascencio

Here's what I did

I have the following code:

@Post('hi')
  async sayHello (@Body() someDto: SomeDto): Promise<any> {
    return await this.greetingService.sayHello(someDto)
  }

When I run:

npx ts-standard

I don't get errors.

What I expected to happen

I expected to see a no-explicit-any error when I run npx ts-standard

What seems to have happened

No clues

deps.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions