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 NonEmptyArray #199

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

davidtjones02
Copy link

Description

Added NonEmptyArray to type utilities. Existed as an outstanding issue for a while that from what I can tell hasn't had a PR yet. Useful for ensuring your arrays are not empty if the expectation is to provide at least one item of a varying type.

Please let me know if any additional work is needed, hoping I've added where necessary!

Cheers.

Related issues:

  • Resolved #181

Checklist

  • I have read CONTRIBUTING.md
  • I have linked all related issues above
  • I have rebased my branch

For bugfixes:

  • I have added at least one unit test to confirm the bug have been fixed
  • I have checked and updated TOC and API Docs when necessary

For new features:

  • I have added entry in TOC and API Docs
  • I have added a short example in API Docs to demonstrate new usage
  • I have added type unit tests with dts-jest

@davidtjones02 davidtjones02 marked this pull request as ready for review July 10, 2024 23:45
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.

1 participant