From 7147ea3ea9483449fe4a0cbf6944e16e3a4fe1bf Mon Sep 17 00:00:00 2001 From: Mikhail Golbakh Date: Mon, 5 Aug 2024 20:05:34 +0300 Subject: [PATCH] fix: install utlity-types package as dependency --- package-lock.json | 7 ++++--- package.json | 6 ++++-- src/react-query/impl/infinite/types.ts | 2 +- src/react-query/impl/plain/types.ts | 2 +- src/react/components/DataInfiniteLoader/index.ts | 2 +- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 128aa12..80a35a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,9 @@ "name": "@gravity-ui/data-source", "version": "0.1.1", "license": "MIT", + "dependencies": { + "utility-types": "^3.11.0" + }, "devDependencies": { "@commitlint/cli": "^19.3.0", "@commitlint/config-conventional": "^19.2.2", @@ -23,8 +26,7 @@ "husky": "^9.0.11", "jest": "^29.7.0", "nano-staged": "^0.8.0", - "react": "^18.3.1", - "utility-types": "^3.11.0" + "react": "^18.3.1" }, "engines": { "node": ">= 18", @@ -20606,7 +20608,6 @@ "version": "3.11.0", "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.11.0.tgz", "integrity": "sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==", - "dev": true, "engines": { "node": ">= 4" } diff --git a/package.json b/package.json index 0ff81a7..40f355f 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,9 @@ "test": "jest --passWithNoTests", "typecheck": "tsc --noEmit" }, + "dependencies": { + "utility-types": "^3.11.0" + }, "devDependencies": { "@commitlint/cli": "^19.3.0", "@commitlint/config-conventional": "^19.2.2", @@ -57,8 +60,7 @@ "husky": "^9.0.11", "jest": "^29.7.0", "nano-staged": "^0.8.0", - "react": "^18.3.1", - "utility-types": "^3.11.0" + "react": "^18.3.1" }, "peerDependencies": { "@tanstack/react-query": "^4.0.0", diff --git a/src/react-query/impl/infinite/types.ts b/src/react-query/impl/infinite/types.ts index 2317bd2..94ca2a0 100644 --- a/src/react-query/impl/infinite/types.ts +++ b/src/react-query/impl/infinite/types.ts @@ -15,7 +15,7 @@ export type InfiniteQueryDataSource TResponse, TData, TError, - InfiniteQueryObserverOptions>, + InfiniteQueryObserverOptions, TResponse>, ResultWrapper, TError>>, QueryFunctionContext > & { diff --git a/src/react-query/impl/plain/types.ts b/src/react-query/impl/plain/types.ts index 7dcd0b3..41990e6 100644 --- a/src/react-query/impl/plain/types.ts +++ b/src/react-query/impl/plain/types.ts @@ -15,7 +15,7 @@ export type PlainQueryDataSource = TResponse, TData, TError, - QueryObserverOptions>, + QueryObserverOptions, TResponse>, ResultWrapper, TError>>, QueryFunctionContext > & { diff --git a/src/react/components/DataInfiniteLoader/index.ts b/src/react/components/DataInfiniteLoader/index.ts index abf15c4..98bdb32 100644 --- a/src/react/components/DataInfiniteLoader/index.ts +++ b/src/react/components/DataInfiniteLoader/index.ts @@ -1,2 +1,2 @@ -export type {DataInfiniteLoaderProps} from './types'; +export type {MoreViewProps, DataInfiniteLoaderProps} from './types'; export {DataInfiniteLoader} from './DataInfiniteLoader';