Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing If types for Is types #961

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ikelax
Copy link

@ikelax ikelax commented Sep 29, 2024

This PR introduces the missing If types for the following Is types:

  • IsNegative
  • IsInteger
  • IsFloat
  • IsEqual
  • The Is types for literal types in source/is-literal.d.ts

I have followed the contributing guidelines. I also plan to review one of the open pull requests, as recommended.

Question:

I noticed typos in source/is-integer.d.ts on lines 6 and 11 (is a integer and is a intrger). Would you prefer a separate PR to address these, or should I include the fix in this one?

Closes #788.

The corresponding `If` types for ``IsNegative`, `IsInteger`, `IsFloat`, `IsEqual`, and the `Is` types for literal types have been missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IfType type guards
1 participant