From 8727289964423b106497a9cd0ac0923835a76031 Mon Sep 17 00:00:00 2001 From: Rebecca Stevens Date: Sat, 14 Aug 2021 01:51:55 +1200 Subject: [PATCH 1/2] fix(eslint-plugin): isTypeReadonly error with , ): Readonlyness { function checkTypeArguments(arrayType: ts.TypeReference): Readonlyness { - const typeArguments = checker.getTypeArguments(arrayType); + const typeArguments = + // getTypeArguments was only added in TS3.7 + checker.getTypeArguments + ? checker.getTypeArguments(arrayType) + : arrayType.typeArguments ?? []; + // this shouldn't happen in reality as: // - tuples require at least 1 type argument // - ReadonlyArray requires at least 1 type argument From a6c3bad1ce8a9a7544f6403d9ac797cbe0cdeffe Mon Sep 17 00:00:00 2001 From: Rebecca Stevens Date: Mon, 26 Jul 2021 10:10:13 +1200 Subject: [PATCH 2/2] chore: add myself to contributors list --- .all-contributorsrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.all-contributorsrc b/.all-contributorsrc index 9302be7a782e..83cf734ca4ed 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -400,6 +400,13 @@ "avatar_url": "https://avatars.githubusercontent.com/u/16860535?v=4", "profile": "https://github.com/soobing", "contributions": [] + }, + { + "login": "RebeccaStevens", + "name": "Rebecca Stevens", + "avatar_url": "https://avatars.githubusercontent.com/u/7224206?v=4", + "profile": "https://github.com/RebeccaStevens", + "contributions": [] } ], "contributorsPerLine": 5