Skip to content

Add NonEmptyArray#199

Open
davidtjones02 wants to merge 4 commits intopiotrwitek:masterfrom
davidtjones02:DJ-001-non-empty-array
Open

Add NonEmptyArray#199
davidtjones02 wants to merge 4 commits intopiotrwitek:masterfrom
davidtjones02:DJ-001-non-empty-array

Conversation

@davidtjones02
Copy link
Copy Markdown

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