Skip to content

Improve type level of empty() and filled() #27

@apademide

Description

@apademide

filled() likely already works quite well I think.

empty() should have a type that's more aware of the input value. Right now, it creates a dumb union where empty(string) instead of only applying the "string-related" logic returns a full union where "string could be [], { string: never }, ...".

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚀 — ImprovementEnhancement, feature request or suggestion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions