question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for ReadonlyArray in NgIterable

See original GitHub issue

πŸš€ feature request

Relevant Package

This feature request is for @angular/core

Description

type NgIterable<T> = Array<T> | Iterable<T>;

Please change it into

type NgIterable<T> = ReadonlyArray<T> | Iterable<T>;

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
pauldrapercommented, May 3, 2020

I’m confused by this in general, since Array<T> is already a subtype of Iterable<T>.

0reactions
angular-automatic-lock-bot[bot]commented, Jul 2, 2022

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NgIterable - Angular
A type describing supported iterable types. ... Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0. Version 15.0.5-local+sha.
Read more >
How do I declare a read-only array tuple in TypeScript?
We can declare a typed tuple in TypeScript, for example, with the type annotation [string, number] . This means an array of 2...
Read more >
angular/core/core.d.ts - UNPKG
TODO: Add a link to a chapter on OnPush components --> ... 768, * Low-level service for running the angular compiler during runtime....
Read more >
ReadonlyArray | typescript - v3.7.7
Interface ReadonlyArray<T> ... Additional items to add to the end of array1. ... Adds all the elements of an array separated by the...
Read more >
[Solved]-Type 'Observable<ArrayBuffer>' is not assignable to ...
And a service layer which was responsible to perform http calls: ... [param: string]: string | number | boolean | ReadonlyArray<string | number...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found