Skip to content

Commit

Permalink
fix(types): error booleans shouldn't permanently be typed as false
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo committed Aug 26, 2024
1 parent 0102a1f commit 9dbd88a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ describe('InfiniteQueryObserver', () => {
expectTypeOf(result.data).toEqualTypeOf<InfiniteData<string, unknown>>()
expectTypeOf(result.error).toEqualTypeOf<Error>()
expectTypeOf(result.status).toEqualTypeOf<'error'>()
expectTypeOf(result.isFetchNextPageError).toEqualTypeOf<false>()
expectTypeOf(result.isFetchPreviousPageError).toEqualTypeOf<false>()
expectTypeOf(result.isFetchNextPageError).toEqualTypeOf<boolean>()
expectTypeOf(result.isFetchPreviousPageError).toEqualTypeOf<boolean>()
}

if (result.isSuccess) {
Expand Down

0 comments on commit 9dbd88a

Please sign in to comment.