Skip to content

IfType type guards #788

Open
Open
@ZachHaber

Description

@ZachHaber

The readme mentions that there should be a corresponding IfType guard for every IsType check.

For every IsT type (e.g. IsAny), there is an associated IfT type that can help simplify conditional types.

I'm only seeing a few IfType guards in the package (IfNever, IfAny, and IfUnknown).

Potential fixes (that I can think of at the moment):

  1. Add the missing IfType guards
  2. Update the readme to specifically call out those three guards

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions