Skip to content

validate typescript signature incorrect? #1557

Open
@nabati

Description

If you pass

const data: unknown  = 'some data from unknown source';
validate<Type>("stringSchema", unknownData);

you will always match the first overload, and the first overload is missing the async case.

image

Are you going to resolve the issue?
I can, if someone confirms that it's a valid issue.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions