Skip to content

Commit e70af5e

Browse files
committed
Fix lint: use unknown[] instead of Array<unknown>
CI flagged 3 occurrences in the eviction-restoration regression tests added in the previous commit. The repo's eslint config prefers the shorthand for simple types via @typescript-eslint/array-type.
1 parent 11bc0a6 commit e70af5e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/unit/onyxUtilsTest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ describe('OnyxUtils', () => {
12221222
await LocalOnyx.set(memberKey, {id: 1, value: 'original'});
12231223
expect(LocalOnyxCache.getKeyForEviction()).toBe(memberKey);
12241224

1225-
const subscriberCalls: Array<unknown> = [];
1225+
const subscriberCalls: unknown[] = [];
12261226
LocalOnyx.connect({
12271227
key: memberKey,
12281228
callback: (value) => subscriberCalls.push(value),
@@ -1248,7 +1248,7 @@ describe('OnyxUtils', () => {
12481248
await LocalOnyx.set(memberKey, {id: 1, value: 'original'});
12491249
expect(LocalOnyxCache.getKeyForEviction()).toBe(memberKey);
12501250

1251-
const collectionCalls: Array<unknown> = [];
1251+
const collectionCalls: unknown[] = [];
12521252
LocalOnyx.connect({
12531253
key: ONYXKEYS.COLLECTION.TEST_KEY,
12541254
waitForCollectionCallback: true,
@@ -1275,7 +1275,7 @@ describe('OnyxUtils', () => {
12751275
await LocalOnyx.set(memberKey, {id: 1, value: 'original'});
12761276
expect(LocalOnyxCache.getKeyForEviction()).toBe(memberKey);
12771277

1278-
const collectionCalls: Array<unknown> = [];
1278+
const collectionCalls: unknown[] = [];
12791279
LocalOnyx.connect({
12801280
key: ONYXKEYS.COLLECTION.TEST_KEY,
12811281
waitForCollectionCallback: true,

0 commit comments

Comments
 (0)