Skip to content

type with {length: number} instead of never#407

Merged
NetanelBasal merged 2 commits intongneat:mainfrom
tayambamwanza:fix/to-collection-length-default
Jul 13, 2025
Merged

type with {length: number} instead of never#407
NetanelBasal merged 2 commits intongneat:mainfrom
tayambamwanza:fix/to-collection-length-default

Conversation

@tayambamwanza
Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

  • Issue Number: N/A
  • Resolve #issueNumber

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

*/

export function toCollection<Collection, Options extends FakeOptions = never>(
export function toCollection<Collection, Options extends FakeOptions = {length: number}>(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a test in collection.spec

Copy link
Copy Markdown
Contributor Author

@tayambamwanza tayambamwanza Jul 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NetanelBasal hopefully the test that I added is sufficient?

@NetanelBasal NetanelBasal merged commit a4616c6 into ngneat:main Jul 13, 2025
2 checks passed
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.

2 participants