Skip to content

Commit 783c929

Browse files
authored
fix: install utlity-types package as dependency (#6)
1 parent b8011ad commit 783c929

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
"test": "jest --passWithNoTests",
4343
"typecheck": "tsc --noEmit"
4444
},
45+
"dependencies": {
46+
"utility-types": "^3.11.0"
47+
},
4548
"devDependencies": {
4649
"@commitlint/cli": "^19.3.0",
4750
"@commitlint/config-conventional": "^19.2.2",
@@ -57,8 +60,7 @@
5760
"husky": "^9.0.11",
5861
"jest": "^29.7.0",
5962
"nano-staged": "^0.8.0",
60-
"react": "^18.3.1",
61-
"utility-types": "^3.11.0"
63+
"react": "^18.3.1"
6264
},
6365
"peerDependencies": {
6466
"@tanstack/react-query": "^4.0.0",

src/react-query/impl/infinite/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export type InfiniteQueryDataSource<TParams, TRequest, TResponse, TData, TError>
1515
TResponse,
1616
TData,
1717
TError,
18-
InfiniteQueryObserverOptions<TResponse, TError, ActualData<TData, TResponse>>,
18+
InfiniteQueryObserverOptions<TResponse, TError, ActualData<TData, TResponse>, TResponse>,
1919
ResultWrapper<InfiniteQueryObserverResult<ActualData<TData, TResponse>, TError>>,
2020
QueryFunctionContext<DataSourceKey, TParams>
2121
> & {

src/react-query/impl/plain/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export type PlainQueryDataSource<TParams, TRequest, TResponse, TData, TError> =
1515
TResponse,
1616
TData,
1717
TError,
18-
QueryObserverOptions<TResponse, TError, ActualData<TData, TResponse>>,
18+
QueryObserverOptions<TResponse, TError, ActualData<TData, TResponse>, TResponse>,
1919
ResultWrapper<QueryObserverResult<ActualData<TData, TResponse>, TError>>,
2020
QueryFunctionContext<DataSourceKey, unknown>
2121
> & {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export type {DataInfiniteLoaderProps} from './types';
1+
export type {MoreViewProps, DataInfiniteLoaderProps} from './types';
22
export {DataInfiniteLoader} from './DataInfiniteLoader';

0 commit comments

Comments
 (0)