TypesScript types issue with node with readonly array and .map
, .each
on AstPath
#15034
Labels
area:type definition
Issues with *d.ts files
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:bug
Issues identifying ugly output, or a defect in the program
Environments:
Typescript produce an error when trying to use
.map
for a property that is a readonly array.Steps to reproduce:
Using the following typescript code will produce an error when trying to
.map
a property that is a readonly array(same for.each
)Expected behavior:
Should not be any difference between a readonly and regular array.
Actual behavior:
Typescript produce an error when trying to use
.map
for a property that is a readonly array.The text was updated successfully, but these errors were encountered: