Skip to content

fix: toLowerCase is not a function #1248

@Zyles

Description

@Zyles

Description

Can't transform values anymore.

"class-transformer": "^0.5.1"

Minimal code-snippet showcasing the problem

@Transform(({ value }) => value.toLowerCase())

Expected behavior

Transform value to lowercase.

Actual behavior

Error:
TypeError: value.toLowerCase is not a function

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triageIssues which needs to be reproduced to be verified report.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