WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

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

@pascencio

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