Skip to content

prop with type: [String, Number] is inferred as string | number | Date #4525

@07akioni

Description

@07akioni

Version

3.2.9

Reproduction link

codesandbox.io

image

this is a regression, 3.2.8 has no error

Steps to reproduce

see link

What is expected?

string | number

What is actually happening?

string | number | Date

Metadata

Metadata

Assignees

No one assigned

    Labels

    ❗ p4-importantPriority 4: this fixes bugs that violate documented behavior, or significantly improves perf.🐞 bugSomething isn't workingscope: types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions