Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Aug 30, 2024
1 parent fa98738 commit 9c9457e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ import { InjectOptions } from '@angular/core';
import { Injector } from '@angular/core';
import type { MutateFunction } from '@tanstack/query-core';
import type { Mutation } from '@tanstack/query-core';
import { MutationFilters } from '@tanstack/query-core';
import type { MutationFilters } from '@tanstack/query-core';
import type { MutationObserverOptions } from '@tanstack/query-core';
import type { MutationObserverResult } from '@tanstack/query-core';
import type { MutationState } from '@tanstack/query-core';
import type { OmitKeyof } from '@tanstack/query-core';
import { Provider } from '@angular/core';
import type { QueriesPlaceholderDataFunction } from '@tanstack/query-core';
import type { QueryClient } from '@tanstack/query-core';
import { QueryFilters } from '@tanstack/query-core';
import type { QueryFilters } from '@tanstack/query-core';
import type { QueryFunction } from '@tanstack/query-core';
import type { QueryKey } from '@tanstack/query-core';
import type { QueryObserverOptions } from '@tanstack/query-core';
Expand Down
3 changes: 2 additions & 1 deletion packages/query-core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ export function isPlainArray(value: unknown) {
}

// Copied from: https://github.com/jonschlinkert/is-plain-object
export function isPlainObject(o: any): o is object {
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
export function isPlainObject(o: any): o is Object {
if (!hasObjectPrototype(o)) {
return false
}
Expand Down
3 changes: 2 additions & 1 deletion packages/vue-query/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ export function cloneDeepUnref<T>(
})
}

function isPlainObject(value: unknown): value is object {
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
function isPlainObject(value: unknown): value is Object {
if (Object.prototype.toString.call(value) !== '[object Object]') {
return false
}
Expand Down

0 comments on commit 9c9457e

Please sign in to comment.