Skip to content

Commit c790f78

Browse files
committed
fix: use ReadonlyArray generic instead of readonly array syntax
- Change readonly unknown[] to ReadonlyArray<unknown> - Complies with project's ESLint config that disallows inline readonly syntax
1 parent 382aca1 commit c790f78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue-query/src/__tests__/queryOptions.test-d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('queryOptions', () => {
1818
(() => Promise<number>) | undefined
1919
>()
2020
expectTypeOf(options.staleTime).toMatchTypeOf<number | undefined>()
21-
expectTypeOf(options.queryKey).toMatchTypeOf<readonly unknown[]>()
21+
expectTypeOf(options.queryKey).toMatchTypeOf<ReadonlyArray<unknown>>()
2222
})
2323

2424
it('should not allow excess properties', () => {

0 commit comments

Comments
 (0)