We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 973d118 commit 21e4472Copy full SHA for 21e4472
crates/oxc_linter/src/rules/typescript/array_type.rs
@@ -973,6 +973,10 @@ const instance = new MyClass<number>(42);",
973
// https://github.com/oxc-project/oxc/issues/12605
974
("let a: factories.User[] = [];", Some(serde_json::json!([{"default":"array-simple"}]))),
975
("let a: factories.TT.User[] = [];", Some(serde_json::json!([{"default":"array-simple"}]))),
976
+ (
977
+ "let z: readonly factories.User[] = [];",
978
+ Some(serde_json::json!([{"readonly":"array-simple"}])),
979
+ ),
980
];
981
982
let fail = vec![
0 commit comments