Skip to content

fix: Unable to resolve signature of property decorator when called as an expression - typescript #684

@kacluk123

Description

@kacluk123

I can't use class-validator because of typescript bug

import { isNotEmpty } from 'class-validator'

export class GetTokenDto {
  @isNotEmpty() code: string;
}

and the compile error is:

error TS1240: Unable to resolve signature of property decorator when called as an expression.
This expression is not callable.
Type 'Boolean' has no call signatures.

4 @isnotempty() code: string;

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: cannot reproduceBug reports which cannot be reproduced.type: fixIssues describing a broken feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions