Add typing to support readonly array properties of AST Node (#15127)
* Add typing to support `readonly` array properties of AST Node * add changelog * fix changelog * add test case
This commit is contained in:
1 parent
5b38f6ec4f
commit
ceed405395
3 files changed
+36
-1
No files matched your search
@@ -12,6 +12,7 @@ interface Nested2 {
|
||||
kind: "2";
|
||||
item3: Nested3;
|
||||
list3: Nested3[];
|
||||
list5: readonly Nested3[];
|
||||
}
|
||||
interface Nested3 {
|
||||
kind: "3";
|
||||
@@ -155,5 +156,7 @@ function print(
|
||||
// @ts-expect-error
|
||||
path.map(print, "item2", "item3");
|
||||
|
||||
path.map(print, "item2", "list5");
|
||||
|
||||
return "";
|
||||
}
|
||||
Reference in new issue
Block a user