Skip to content

Commit 9c9457e

Browse files
Fix types
1 parent fa98738 commit 9c9457e

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

packages/angular-query-experimental/etc/angular-query-experimental.api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ import { InjectOptions } from '@angular/core';
1717
import { Injector } from '@angular/core';
1818
import type { MutateFunction } from '@tanstack/query-core';
1919
import type { Mutation } from '@tanstack/query-core';
20-
import { MutationFilters } from '@tanstack/query-core';
20+
import type { MutationFilters } from '@tanstack/query-core';
2121
import type { MutationObserverOptions } from '@tanstack/query-core';
2222
import type { MutationObserverResult } from '@tanstack/query-core';
2323
import type { MutationState } from '@tanstack/query-core';
2424
import type { OmitKeyof } from '@tanstack/query-core';
2525
import { Provider } from '@angular/core';
2626
import type { QueriesPlaceholderDataFunction } from '@tanstack/query-core';
2727
import type { QueryClient } from '@tanstack/query-core';
28-
import { QueryFilters } from '@tanstack/query-core';
28+
import type { QueryFilters } from '@tanstack/query-core';
2929
import type { QueryFunction } from '@tanstack/query-core';
3030
import type { QueryKey } from '@tanstack/query-core';
3131
import type { QueryObserverOptions } from '@tanstack/query-core';

packages/query-core/src/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@ export function isPlainArray(value: unknown) {
305305
}
306306

307307
// Copied from: https://github.com/jonschlinkert/is-plain-object
308-
export function isPlainObject(o: any): o is object {
308+
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
309+
export function isPlainObject(o: any): o is Object {
309310
if (!hasObjectPrototype(o)) {
310311
return false
311312
}

packages/vue-query/src/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ export function cloneDeepUnref<T>(
9696
})
9797
}
9898

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

0 commit comments

Comments
 (0)